printing with rawprinter helper

J

J-Rod

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::OpenPrinter' 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.
 
J

J-Rod

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Send raw data to the printer 4
Error Message 1
"CreateFile" APIl 2
GetKeyState 5
LPCGUID and System.Guid 1
Windos XP/2000 reboot 1
CreateToolhelp32Snapshot 2
Passing a string from a C# program to a C\C++ dll 2

Top