printing with rawprinter helper

  • Thread starter Thread starter J-Rod
  • Start date Start date
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.
 
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.
 
Back
Top