ActiveReports for .NET 2.0 Visual Studio .NET 2005 Support

Started by kspade at 11-16-2005 6:35 PM. Topic has 1 replies.

Print Search
Sort Posts:    
   11-16-2005, 6:35 PM
kspade is not online. Last active: 12/23/2005 6:01:38 AM kspade

Not Ranked
Joined on 02-01-2005
Posts 5
Export to PDF causes crash
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");

   Report 
   11-18-2005, 12:30 PM
Michael is not online. Last active: 12/20/2011 6:40:04 PM Michael

Top 10 Posts
Joined on 04-23-2003
Columbus, OH
Posts 2,494

DDVIP
Re: Export to PDF causes crash
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

   Report 
GrapeCity » Forum Archives » ActiveReports f... » Export to PDF causes crash

Privacy Policy | Copyright © 1997-2012 — GrapeCity, inc.
All trademarks mentioned are the property of their respective owners.