This seems to apply across the board (e.g. saving to pdf, xlsx, docx etc.) and can easily be re-created by saving the report as a pdf file, viewing this file in abobe's viewer, and then trying to re-save the file with the same path from your report viewer.
Whilst I understand the reason for the error it would be better for the user if your software handled the situation more gracefully.
I'm using the following code to view the report: -
Code: Select all
StiOptions.Silverlight.Themes.CurrentTheme = StiSilverlightThemes.Office2010Blue
StiOptions.Viewer.Elements.ShowReportOpenButton = False
StiOptions.Viewer.Elements.ShowPageNewButton = False
StiOptions.Viewer.Elements.ShowPageDeleteButton = False
StiOptions.Viewer.Elements.ShowBookmarksPanel = False
StiOptions.Viewer.SaveReportsButtons.ShowDocumentButton = False
Dim report As New StiReport
Dim a As Assembly = Assembly.GetCallingAssembly()
Using sr As StreamReader = New StreamReader(a.GetManifestResourceStream(reportResourceName))
report.Load(sr.BaseStream)
End Using
report.CalculationMode = StiCalculationMode.Compilation
report.RegBusinessObject("ReportModel", "ReportModel", Me)
report.Render()
report.Show()
Thanks