PDF Export Error

Stimulsoft Reports.WPF discussion
Post Reply
mhudnall
Posts: 12
Joined: Tue Oct 20, 2009 2:20 pm
Location: Tuscaloosa, AL

PDF Export Error

Post by mhudnall »

On Windows 7 64 bit using Wpf 2009.2, when I have any report open (including Demo.Wpf.exe) and I try and Save to PDF I get the following exception:

{"Could not load type 'CRYPT_ALGORITHM_IDENTIFIER' from assembly 'Stimulsoft.Report, Version=2009.3.512.0, Culture=neutral, PublicKeyToken=ebe6666cba19647a' because it contains an object field at offset 4 that is incorrectly aligned or overlapped by a non-object field.":"CRYPT_ALGORITHM_IDENTIFIER"}

Note: Demo.Wpf.exe just crashes since it is an unhandled exception in a compiled application...

Please help! We are about to buy a site license and exporting to PDF is abcolutely critical.

Thanks.:cry:
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

PDF Export Error

Post by Jan »

Hello,

Please add following line of code before report rendering:

Code: Select all

Stimulsoft.Report.StiSettings.Set("StiPdfExportSetupForm", "UseDigitalSignature", false);
Thank you.
mhudnall
Posts: 12
Joined: Tue Oct 20, 2009 2:20 pm
Location: Tuscaloosa, AL

PDF Export Error

Post by mhudnall »

Thanks for the quick response. In my code, I put:

Stimulsoft.Report.StiSettings.Set("StiPdfExportSetupForm", "UseDigitalSignature", false);
stiReport.RenderWithWpf(true);

That didn't work, but it pointed me in the right direction. In the PDF export options, I had 'Use Digital Signature' checked. When I unchecked it, it worked correctly. I thought the above code would have programmatically unchecked it, but I guess not. Anyway, thanks for your help and you may want to catch the unhandled exception that is thrown in future releases.
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

PDF Export Error

Post by Edward »

Hi,

Yes that is correct, the code is intended for setting of that option to unchecked state.

But the code is needed to be modified slightly:

Code: Select all

StiSettings.Load();
Stimulsoft.Report.StiSettings.Set("StiPdfExportSetupForm", "UseDigitalSignature", false);
StiSettings.Save();
report.ShowWithWpf();
Thank you for that information, we will check exports with Windows 7/64 again.

Thank you.
mhudnall
Posts: 12
Joined: Tue Oct 20, 2009 2:20 pm
Location: Tuscaloosa, AL

PDF Export Error

Post by mhudnall »

Ah, I needed to save it! Thanks!
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

PDF Export Error

Post by Ivan »

Hello,

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

Thank you.
Post Reply