Export to PDF in StiMvcMobileViewer throws exception

Stimulsoft Reports.WEB discussion
Post Reply
sbd_jeff
Posts: 27
Joined: Fri Nov 08, 2013 9:39 pm

Export to PDF in StiMvcMobileViewer throws exception

Post by sbd_jeff »

Hi Stimulsoft,
We are using 2014.1.1900.0.

I've observed when using the StiMvcMobileViewer control that attempts to export to PDF fail with the following exception:
System.ArgumentException was unhandled by user code
HResult=-2147024809
Message=Requested value 'Jpeg' was not found.
Source=mscorlib
StackTrace:
at System.Enum.EnumResult.SetFailure(ParseFailureKind failure, String failureMessageID, Object failureMessageFormatArgument)
at System.Enum.TryParseEnum(Type enumType, String value, Boolean ignoreCase, EnumResult& parseResult)
at System.Enum.Parse(Type enumType, String value, Boolean ignoreCase)
at System.Enum.Parse(Type enumType, String value)
at Stimulsoft.Report.Mvc.StiExportsClass.GetPdfExportSettings(XmlNode settingsNode)
at Stimulsoft.Report.Mvc.StiExportsClass.GetExportSettings(StiExportFormat exportFormat, XmlNode settingsNode)
at Stimulsoft.Report.Mvc.StiExportsClass.ExportReport(StiReport report, StiExportFormat exportFormat, XmlNode settingsNode, Stream stream, Boolean saveFileDialog)
<snip>

I was able to reproduce this behavior in the tutorial samples provided by the 2014.1.1900.0 install by replacing the StiMvcViewer with an StiMvcMobileViewer.

Is there a setting I'm missing or is this a bug in StiMvcMobileViewer?

Thanks!
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Export to PDF in StiMvcMobileViewer throws exception

Post by Alex K. »

Hello,

Please check the last build.
If the issue still present, please send us a sample which reproduces the issue for analysis.

Thank you.
Post Reply