Error when exporting to PDF

Stimulsoft Reports.WPF discussion
pflores
Posts: 8
Joined: Fri Oct 14, 2016 12:14 pm

Error when exporting to PDF

Post by pflores »

Hello,

When saving the report to PDF, I get the following exception:

Code: Select all

----------------------------
[General Info]

Framework:   v4.0.30319
Version:     Version: 2016.2.0 from 1 October 2016
OSVersion:   Microsoft Windows NT 6.2.9200.0

----------------------------
[Exception Info]
Message:     Property 'PdfACompliance' is not found in 'Stimulsoft.Report.Export.Wpf.StiPdfExportSetupForm'.

Source:      Stimulsoft.Report.Wpf

StackTrace:
   at Stimulsoft.Report.Wpf.StiWpfFormRunner.get_Item(String key)
   at Stimulsoft.Report.WCFService.StiExportSettingsHelper.GetPdfExportSettings(IStiFormRunner form, StiReport report)
   at Stimulsoft.Report.Export.StiPdfExportService.form_Complete(IStiFormRunner form, StiShowDialogCompleteEvetArgs e)
   at Stimulsoft.Report.Wpf.StiWpfFormRunner.InvokeComplete(Boolean dialogResult)
   at Stimulsoft.Report.Wpf.StiWpfFormRunner.ShowDialog()
   at Stimulsoft.Report.Export.StiPdfExportService.Export(StiReport report, String fileName, Boolean sendEMail, StiGuiMode guiMode)
   at Stimulsoft.Report.Viewer.StiWpfViewerControl.OnProcessExport(Object sender)
   at Stimulsoft.Report.Viewer.StiWpfViewerControl.InvokeProcessExport(StiExportService service)
   at Stimulsoft.Report.Viewer.StiWpfViewerControl.itemExport_Click(Object sender, RoutedEventArgs e)

----------------------------
[Assemblies]

Stimulsoft.Base, Version = 2016.2.0.0
Stimulsoft.Report, Version = 2016.2.0.0
Stimulsoft.Report.Wpf, Version = 2016.2.0.0
Stimulsoft.Report.WpfDesign, Version = 2016.2.0.0
If I look at StiPdfExportSetupForm in the Object Browser, it appears it has the PdfComplianceMode property, but not the PdfACompliance one.

What should I do?

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

Re: Error when exporting to PDF

Post by Alex K. »

Hello,

We couldn't reproduce this bug.
Could you explain your issue in more details?

Thank you.
pflores
Posts: 8
Joined: Fri Oct 14, 2016 12:14 pm

Re: Error when exporting to PDF

Post by pflores »

Hello,

Thanks for your reply, this bug happens after I open a document in Stimulsoft. I go to the preview tab, then click on save to PDF.

Then, I get this window :
Image

No matter what I choose, I then get the error I described earlier.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Error when exporting to PDF

Post by HighAley »

Hello.

Sorry, we still could not reproduce the issue.
Could you try our latest prerelease build?
If you still get the issue, send us a sample project that reproduces the issue.

Thank you.
pflores
Posts: 8
Joined: Fri Oct 14, 2016 12:14 pm

Re: Error when exporting to PDF

Post by pflores »

I tried the latest pre-release version, to no avail.

It seems the issue appears when the user registers to the Stimulsoft.Report.StiOptions.WCFService.WCFExportDocument event.

Here is a sample project containing the crash: https://drive.google.com/open?id=0B54eq ... U1BMlNmQnc.
Simply create a new report, preview it, and save it to PDF.
There will be an exception inside Stimulsoft before the application can reach the user code.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Error when exporting to PDF

Post by Alex K. »

Hello,

We need some additional time to check it in the WCF.

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

Re: Error when exporting to PDF

Post by Alex K. »

Hello,

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

Thank you.
pflores
Posts: 8
Joined: Fri Oct 14, 2016 12:14 pm

Re: Error when exporting to PDF

Post by pflores »

Thanks!
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

Re: Error when exporting to PDF

Post by Ivan »

Hello,

We are always glad to help you.
Let us know if you need any additional help.

Thank you.
pflores
Posts: 8
Joined: Fri Oct 14, 2016 12:14 pm

Re: Error when exporting to PDF

Post by pflores »

Hello,

Using the prerelease 2016.2.5, with the same test project, I still have an error, although the propriety that's not found is a different one.
Here is the error log:

Code: Select all

----------------------------
[General Info]

Application: WpfDesigner_SaveLoad
Framework:   v4.0.30319
Version:     Version: 2016.2.5 from 28 October 2016
OSVersion:   Microsoft Windows NT 6.2.9200.0

----------------------------
[Exception Info]
Message:     Property 'StandardPdfFonts' is not found in 'Stimulsoft.Report.Export.Wpf.StiPdfExportSetupForm'.

Source:      Stimulsoft.Report.Wpf

StackTrace:
   at Stimulsoft.Report.Wpf.StiWpfFormRunner.get_Item(String key)
   at Stimulsoft.Report.WCFService.StiExportSettingsHelper.GetPdfExportSettings(IStiFormRunner form, StiReport report)
   at Stimulsoft.Report.Export.StiPdfExportService.form_Complete(IStiFormRunner form, StiShowDialogCompleteEvetArgs e)
   at Stimulsoft.Report.Wpf.StiWpfFormRunner.InvokeComplete(Boolean dialogResult)
   at Stimulsoft.Report.Wpf.StiWpfFormRunner.ShowDialog()
   at Stimulsoft.Report.Export.StiPdfExportService.Export(StiReport report, String fileName, Boolean sendEMail, StiGuiMode guiMode)
   at Stimulsoft.Report.Viewer.StiWpfViewerControl.OnProcessExport(Object sender)
   at Stimulsoft.Report.Viewer.StiWpfViewerControl.itemExport_Click(Object sender, RoutedEventArgs e)

----------------------------
[Assemblies]
mscorlib, Version = 4.0.0.0
PresentationFramework, Version = 4.0.0.0
Stimulsoft.Report, Version = 2016.2.5.0
Stimulsoft.Report.WpfDesign, Version = 2016.2.5.0
System, Version = 4.0.0.0
System.Xaml, Version = 4.0.0.0
Here is my test project with the updated DLLs : https://drive.google.com/open?id=0B54eq ... WFlRXpqMEE

Thank you.
Post Reply