Page 1 of 1

PDF Export Error

Posted: Tue Oct 20, 2009 2:25 pm
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:

PDF Export Error

Posted: Wed Oct 21, 2009 12:17 am
by Jan
Hello,

Please add following line of code before report rendering:

Code: Select all

Stimulsoft.Report.StiSettings.Set("StiPdfExportSetupForm", "UseDigitalSignature", false);
Thank you.

PDF Export Error

Posted: Wed Oct 21, 2009 5:03 am
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.

PDF Export Error

Posted: Wed Oct 21, 2009 11:21 am
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.

PDF Export Error

Posted: Wed Oct 21, 2009 11:28 am
by mhudnall
Ah, I needed to save it! Thanks!

PDF Export Error

Posted: Sun Dec 27, 2009 6:38 am
by Ivan
Hello,

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

Thank you.