ActiveReports for .NET 2.0 Visual Studio .NET 2005 Support

Started by andyd01 at 10-24-2005 6:12 PM. Topic has 3 replies.

Print Search
Sort Posts:    
   10-24-2005, 6:12 PM
andyd01 is not online. Last active: 12/2/2005 4:15:53 PM andyd01

Not Ranked
Joined on 09-01-2004
Posts 3
PInvoke Error during PDF Export
Using ActiveReports 2.0 SP1 (Trial Version - I own AR1.0 and am planning on upgrading to use VS2005).  I'm using VS2005 RC. I'm getting the following error on a PDF Export:

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.

Below is the code I'm using in a simplified scenario:

using System;
using System.Collections.Generic;
using System.Text;
using DataDynamics.ActiveReports.Export.Pdf;

namespace Test {
   class Program {
      
static void Main( string [] args) {
         ActiveReport1 report1 = new ActiveReport1 ();
         report1.Run();
         PdfExport export = new PdfExport ();
         export.Export(report1.Document,
@"c:\temp\test4.pdf" );
      }
   }
}

The report -- "ActiveReport1" in the code sample above -- is a completely blank report.  This shows, I think, that there is nothing in the report that's causing this problem.

Has anyone else had this error?  Is there a fix or work-around?

Thanks for your help.


   Report 
   10-24-2005, 8:23 PM
Peter V is not online. Last active: 12/15/2005 1:19:13 AM Peter V

Top 10 Posts
Joined on 08-28-2004
Posts 3,434

DDStaff
Re: PInvoke Error during PDF Export
Please see the following announcement for VS 2005 support:
http://www.datadynamics.com/ShowPost.aspx?PostID=75732

Peter V
ActiveReports Support
   Report 
   11-17-2005, 7:08 AM
dvance is not online. Last active: 12/8/2005 5:25:37 PM dvance

Not Ranked
Joined on 08-28-2004
Posts 2
Re: PInvoke Error during PDF Export

I just ran into this problem.  It appears that this error is being reported by the MDA (Managed Debugging Assistants).  If I run my application natively, outside the IDE debug environment, it works fine.   There is still a problem, but at least you may be able to get around it by not using debug.


   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: PInvoke Error during PDF Export
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... » PInvoke Error during PDF Export

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