Exception when saving file

Stimulsoft Reports.Silverlight discussion
Locked
User avatar
ChrisCookDev
Posts: 41
Joined: Sun May 20, 2012 7:07 pm
Location: UK

Exception when saving file

Post by ChrisCookDev »

When saving to a filename that already exists and is being viewed/locked by another process I receive the following exception: -
stimulsoft exception.png
stimulsoft exception.png (97.15 KiB) Viewed 2313 times
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()
Any assistance in resolving this issue and making the experience for the user better would be greatly appreciated.

Thanks
Chris Cook :: Software Development Manager :: www.genesisit.co.uk
Design, Develop, Deliver! :: App development for smartphones, tablets, the desktop and the web
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Exception when saving file

Post by HighAley »

Hello.

We agree with the existence of the problem, which can bring some inconvenience to end users.
We will make such messages more user-friendly after our release.

Thank you.
Locked