PDF Export
PDF Export
I am using Stimulsoft Report in a non .NET language.
I made wrapper around Stimulsoft and call it from my application. It works with only one problem.
When I try to export my report to PDF, first run is Ok but if I try to export one more time, no meter it is same or any other report called from my application I receive an Exception Error:
COM object that has been separated from its underlying RCW cannot be used.
I searched Google and find that it is related to freeing object and threading. I was sure that destroying COM object in my application is enough to reset Stimulsoft (.NET) call but it looks there is something more.
Is there something I can do to dispose running object after every run?
Best regards,
Djordje Radovanovic
I made wrapper around Stimulsoft and call it from my application. It works with only one problem.
When I try to export my report to PDF, first run is Ok but if I try to export one more time, no meter it is same or any other report called from my application I receive an Exception Error:
COM object that has been separated from its underlying RCW cannot be used.
I searched Google and find that it is related to freeing object and threading. I was sure that destroying COM object in my application is enough to reset Stimulsoft (.NET) call but it looks there is something more.
Is there something I can do to dispose running object after every run?
Best regards,
Djordje Radovanovic
Re: PDF Export
Hello, Djordje.
Could you specify which version do you use?
Thank you.
Could you specify which version do you use?
Thank you.
Re: PDF Export
Most recent. 2015.1
Regards,
Djole
Regards,
Djole
Re: PDF Export
Hello.
What export settings do you use?
Please, try to disable Embedded Fonts and Use Unicode.
Try to Change Text Quality of Text components to Standard.
Thank you.
What export settings do you use?
Please, try to disable Embedded Fonts and Use Unicode.
Try to Change Text Quality of Text components to Standard.
Thank you.
Re: PDF Export
I am not using any export settings. Export is done by application user through report viewer. So, when I start ShowReport there is options for exporting report to various format. When user of my application try to export current report to .PDF or to any other format this Exception Error pops up. It is not strictly .PDF.
Best regards,
Djole
Best regards,
Djole
Re: PDF Export
Hello,
Can you please clarify this error ocurs when export in all formats or only some.
Thank you.
Can you please clarify this error ocurs when export in all formats or only some.
Thank you.
Re: PDF Export
It is not PDF specific. Firstly, as it is most used export format, we discovered on PDF export but after start of this thread we tested this on other formats and it gives us same problem.
If we try to export in a first report view we can export maybe two or three random format export. Second run of report viewer almost certain make Exception Report no meter what format we try.
Best regards,
Djordje Radovanovic
If we try to export in a first report view we can export maybe two or three random format export. Second run of report viewer almost certain make Exception Report no meter what format we try.
Best regards,
Djordje Radovanovic
Re: PDF Export
Hello, Djordje.
Could you send us a sample project that reproduces the issue?
Thank you.
Could you send us a sample project that reproduces the issue?
Thank you.
Re: PDF Export
I made an example. It includes my application that is able to run report, report and wrapper library around StimulSoft.
Library from StimulSoft did not packed cause there are too large but I was compile with latest 2015.1 version. Same behavior is with 2013.3 version of StimulSoft.
You just have to add following libraries in a same folder where is my .EXE file:
Stimlsoft.Base.dll
Stimlsoft.Controls.dll
Stimlsoft.Controls.Win.dll
Stimlsoft.Database.dll
Stimlsoft.Editor.dll
Stimlsoft.Report.Check.dll
Stimlsoft.Report.Com.dll
Stimlsoft.Report.Design.dll
Stimlsoft.Report.dll
Stimlsoft.Report.Helper.dll
Stimlsoft.Report.Win.dll
Best regards,
Djordje
Library from StimulSoft did not packed cause there are too large but I was compile with latest 2015.1 version. Same behavior is with 2013.3 version of StimulSoft.
You just have to add following libraries in a same folder where is my .EXE file:
Stimlsoft.Base.dll
Stimlsoft.Controls.dll
Stimlsoft.Controls.Win.dll
Stimlsoft.Database.dll
Stimlsoft.Editor.dll
Stimlsoft.Report.Check.dll
Stimlsoft.Report.Com.dll
Stimlsoft.Report.Design.dll
Stimlsoft.Report.dll
Stimlsoft.Report.Helper.dll
Stimlsoft.Report.Win.dll
Best regards,
Djordje
- Attachments
-
- StiTest.rar
- Requested example
- (884.59 KiB) Downloaded 224 times
Re: PDF Export
Hello.
Please, try to set next option:
Thank you.
Please, try to set next option:
Code: Select all
Stimulsoft.Controls.DesktopIntegration.Windows7Taskbar.DisableTaskbarProgress = true;