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.
PDF Export Error
PDF Export Error
Hello,
Please add following line of code before report rendering:
Thank you.
Please add following line of code before report rendering:
Code: Select all
Stimulsoft.Report.StiSettings.Set("StiPdfExportSetupForm", "UseDigitalSignature", false);
PDF Export Error
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.
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
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:
Thank you for that information, we will check exports with Windows 7/64 again.
Thank you.
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.
PDF Export Error
Ah, I needed to save it! Thanks!
PDF Export Error
Hello,
We are always glad to help you.
Let us know if you need any additional help.
Thank you.
We are always glad to help you.
Let us know if you need any additional help.
Thank you.