PDF Export

Stimulsoft Reports.NET discussion
dikan
Posts: 202
Joined: Thu Jun 18, 2009 5:05 pm
Location: Serbia

PDF Export

Post by dikan »

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
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: PDF Export

Post by HighAley »

Hello, Djordje.

Could you specify which version do you use?

Thank you.
dikan
Posts: 202
Joined: Thu Jun 18, 2009 5:05 pm
Location: Serbia

Re: PDF Export

Post by dikan »

Most recent. 2015.1

Regards,

Djole
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: PDF Export

Post by HighAley »

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.
dikan
Posts: 202
Joined: Thu Jun 18, 2009 5:05 pm
Location: Serbia

Re: PDF Export

Post by dikan »

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
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: PDF Export

Post by Alex K. »

Hello,

Can you please clarify this error ocurs when export in all formats or only some.

Thank you.
dikan
Posts: 202
Joined: Thu Jun 18, 2009 5:05 pm
Location: Serbia

Re: PDF Export

Post by dikan »

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
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: PDF Export

Post by HighAley »

Hello, Djordje.

Could you send us a sample project that reproduces the issue?

Thank you.
dikan
Posts: 202
Joined: Thu Jun 18, 2009 5:05 pm
Location: Serbia

Re: PDF Export

Post by dikan »

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
Attachments
StiTest.rar
Requested example
(884.59 KiB) Downloaded 224 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: PDF Export

Post by HighAley »

Hello.

Please, try to set next option:

Code: Select all

Stimulsoft.Controls.DesktopIntegration.Windows7Taskbar.DisableTaskbarProgress = true;
Thank you.
Post Reply