By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,710 Members | 1,613 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,710 IT Pros & Developers. It's quick & easy.

Strange exception with ReportViewer control

P: n/a
We're the ReportViewer Control in a .NET 2.0 winforms app.

Here's the call I'm making:

byte[] reportBytes = this.reportViewerInstallRpt.LocalReport.Render("PD F",
null, out mimeType, out encoding, out extension, out streamids, out warnings);

Here's the exception:
A call to PInvoke function
'Microsoft.ReportViewer.Common!Microsoft.Reporting Services.Rendering.ImageRenderer.CompositionPDF+Wi ndowsGDIWrapper::GetGlyphIndicesW'
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 exception only happens intermittently on some machines, but always on
some other machines. This makes me think there is some kind of configuration
problem, perhaps. However, we are all using Visual Studio 2005 SP1 -- exact
same version of .NET framework and VS.

Any thoughts on why this is happening?
Feb 16 '07 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.