Export to PDF in StiMvcMobileViewer throws exception
Posted: Thu Apr 14, 2016 7:30 pm
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!
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!