Page 1 of 2

Error when exporting to PDF

Posted: Fri Oct 14, 2016 12:16 pm
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.

Re: Error when exporting to PDF

Posted: Fri Oct 14, 2016 4:27 pm
by Alex K.
Hello,

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

Thank you.

Re: Error when exporting to PDF

Posted: Mon Oct 17, 2016 8:46 am
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.

Re: Error when exporting to PDF

Posted: Mon Oct 17, 2016 3:06 pm
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.

Re: Error when exporting to PDF

Posted: Wed Oct 19, 2016 9:34 am
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.

Re: Error when exporting to PDF

Posted: Fri Oct 21, 2016 7:51 am
by Alex K.
Hello,

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

Thank you.

Re: Error when exporting to PDF

Posted: Mon Oct 24, 2016 8:46 pm
by Alex K.
Hello,

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

Thank you.

Re: Error when exporting to PDF

Posted: Tue Oct 25, 2016 8:33 am
by pflores
Thanks!

Re: Error when exporting to PDF

Posted: Wed Oct 26, 2016 12:33 am
by Ivan
Hello,

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

Thank you.

Re: Error when exporting to PDF

Posted: Mon Oct 31, 2016 9:28 am
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.