Xunil79 Posted December 12, 2002 Report Posted December 12, 2002 ciao a tutti,vorrei sapere se, e come, e' possibile inviare tramite l'oggetto printer delle sequenze di ESCape ad una stampante.ciao e grazieXunil79
dago_ Posted December 13, 2002 Report Posted December 13, 2002 Nel mio archivio pattumiera ho trovato questo, non l'ho mai provato ma forse è quello che ti serve.La funzione dovrebbe bypassare il driver della stampante, che altrimenti interpreta la sequenza ESC come testo paranormale.Public Declare Function EscapeCodes Lib "gdi32" Alias "Escape" (ByVal hdc&,ByVal nEscape&, ByVal nCount&, ByVal InData$, ByVal lpOutData&) As LongPublic Sub UsePrinterPart(DataToPrint As String)Const cPASSTHROUGH As Long = 19Dim pcl_Escape_Tmp As Stringpcl_Escape_Tmp = Chr$(Len(DataToPrint) Mod 256) &Chr$(Len(DataToPrint) \256) & DataToPrintPrinter.CurrentY = ciZero Printer.Print vbNullStringEscapeCodes Printer.hdc, cPASSTHROUGH, 0, pcl_Escape_Tmp, ByVal 0&End SubCiao
Xunil79 Posted December 17, 2002 Author Report Posted December 17, 2002 grazie mille.provo e ti faccio sapere.ciao xunil79
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now