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

printing with rawprinter helper

P: n/a
Hi all. I am getting this error in the rawprinterelper class,
specifically the sendBytesToPrinter Function. Is it a problem that i
am trying to print a .dat file? or what could be throwing it off? I
am new to teh printer helper, especially within the VB.net 2005
environment. AnySuggestions?
PInvokeStackImbalance was detected
Message: A call to PInvoke function
'UR.UI.Sales!UR.UI.Sales.RawPrinterHelper::OpenPri nter' 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.

Feb 15 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
i changed the parameters of the OpenPrinter Property in the Class
RawPrinterHelper. The third parameter as and INTEGER instead of a LONG
fixed the issue i had. Hope maybe this helps someone else.

Feb 16 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.