Problem with Progressbar on Export

Stimulsoft Reports.WPF discussion
Daniel Peinhopf
Posts: 8
Joined: Tue Aug 20, 2013 5:26 am

Problem with Progressbar on Export

Post by Daniel Peinhopf »

Hello

We have embedded the Stimulsoft WPF Viewer in our WinForms application. I know that there is a separate Winforms Control but we want to use the WPF control. The viewer works well but i get an error while exporting the report to any format.

I get a null reference exception in this method:
bei Stimulsoft.Report.Wpf.StiProgressInformation.Start(String title, Int32 progressMaximum)

Are you trying to look for a real WPF window in this method? If you need this as the owner for the progressbar would it be possible to add a "not null" check and do not set an owner? Is this possible?

Or if this would not be possible, is there any way do disable the progress bar on export completely?

Thank you
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Problem with Progressbar on Export

Post by Alex K. »

Hello,

Please send us a sample project which reproduce the issue for analysis.

Thank you.
Daniel Peinhopf
Posts: 8
Joined: Tue Aug 20, 2013 5:26 am

Re: Problem with Progressbar on Export

Post by Daniel Peinhopf »

Sorry this isn't possible because this is a big project that would not run without the database.

Is there any way to disable the progress bar or to override the functionality of the export buttons in the viewer?
Or to add Custom buttons for export?
Exports via "report.ExportDocument(StiExportFormat.Pdf, file)" works well.

@edit: I have created a simple sample application that reproduces the problem.
Please try to export the report as a pdf file or any other type directly from the viewer.
The Choose-File-Dialog pops up and after pressing the OK button the exception occurs.

Thank you
Attachments
SampleProject.zip
(4.73 MiB) Downloaded 250 times
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Problem with Progressbar on Export

Post by Alex K. »

Hello,

Thank you for the sample project.
We need some time for check the issue.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Problem with Progressbar on Export

Post by Alex K. »

Hello,

The issue is fixed.
Solution will be available in the next prerelease build on this week.

Thank you.
Daniel Peinhopf
Posts: 8
Joined: Tue Aug 20, 2013 5:26 am

Re: Problem with Progressbar on Export

Post by Daniel Peinhopf »

Thank you. It works now.
Andrew
Posts: 4108
Joined: Fri Jun 09, 2006 3:58 am

Re: Problem with Progressbar on Export

Post by Andrew »

Hello,

Great! Thank you for letting us know about this.

have a nice weekend!
Daniel Peinhopf
Posts: 8
Joined: Tue Aug 20, 2013 5:26 am

Re: Problem with Progressbar on Export

Post by Daniel Peinhopf »

I have another problem now.
I have used all the new dlls and the export works great now.
But we also use the WinForms Designer control and by using the new Stimulsoft.Base and Stimulsoft.Report Assemblies i get an EntryPointNotFoundException when assigning a Report to the Report property of the Designer control.
It works with the old assemblies.

Could you please check that with the new version assenblies?
Thank you.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Problem with Progressbar on Export

Post by Alex K. »

Hello,

Can you please describe your issue in more details. Please send us a step by step guide how to reproduce the issue.

Thank you.
Daniel Peinhopf
Posts: 8
Joined: Tue Aug 20, 2013 5:26 am

Re: Problem with Progressbar on Export

Post by Daniel Peinhopf »

Just use the new assemblies of version 2013.08.23, and create a new simple WinForms application.
Then instantiate the WpfDesignerControl and add it to the form.
If you start the application all works fine.

Now create a new StiReport instance and assign it to the Report-property of the StiDesignerControl-instance.
While doing that the exception occurs.

Please let me know if you need a sample project.
Post Reply