Re: Export to PDF causes crash
ActiveReports for .NET 2.0 Visual Studio .NET 2005 Support
Export to PDF causes crash
11-16-2005, 6:35 PM
I am running Visual Studio 2005 RTM with ActiveReports 4.1.0.1127. When I attempt to export a document, I get the following runtime error:
A call to PInvoke function 'ActiveReports.PdfExport!-1h.-b1be::SelectObject' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature.
The code I am using to export the report is as follows:
DataDynamics.ActiveReports.Export.Pdf.PdfExport pdfExport = new DataDynamics.ActiveReports.Export.Pdf.PdfExport();
pdfExport.Export(viewer.Document, @"C:\Export.pdf");
Re: Export to PDF causes crash
11-18-2005, 12:30 PM
In currently released builds of ActiveReports for .NET 2.0 this is a problem due to the Managed Debug Assistants (MDA) - you will only get this error in debug mode currently and you can turn these off to test the code with the pre-release builds of ActiveReports for .NET 2.0 for Visual Studio 2005. In the final release this has been resolved, and it should be posted in the coming days.
Michael Mason