The way I have done this is to use the PCL macro function; upload the logo to the printer and store it as a macro. Then when you print the form, turn on the macro in overlay mode. You can turn the macro on and off as necessary to handle 2nd pages, etc; when done you delete the macro. You may want to get a PCL book (that's what I ended up doing).
Here is some generic BASIC PCL MACRO handling stuff: 0001 SUBROUTINE PC.LASER.MACRO.CONTROL(CODE,RESULT) 0002 * subroutine to control macros on a laserjet 0003 * 06-21-93 asb 0004 * 0005 * CODE: 0 = start macro definition (for last ID specified) 0006 * 1 = stop macro definition 0007 * 2 = execute macro (for last ID specified) 0008 * uses current print environment and leaves it changed 0009 * 3 = call macro 0010 * uses current print environment then restores original 0011 * print environment when through 0012 * 4 = enable overlay mode (for last ID specified) 0013 * uses overlay print environment then restores original 0014 * print environment when through 0015 * 5 = disable overlay mode 0016 * 6 = delete all macros 0017 * 7 = delete all temporary macros 0018 * 8 = delete macro (for last ID specified) 0019 * 9 = make macro temporary (for last ID specified) 0020 * 10 = make macro permanent (for last ID specified) 0021 * 0022 EQU ESC TO CHAR(27) 0023 * 0024 RESULT = ESC:"&f":CODE:"X" 0025 * 0026 RETURN 0001 SUBROUTINE PC.LASER.MACRO.ID(ID,RESULT) 0002 * subroutine to specify a macro id on a laserjet 0003 * 06-21-93 asb 0004 * 0005 EQU ESC TO CHAR(27) 0006 * 0007 RESULT = ESC:"&f":ID:"Y" 0008 * 0009 RETURN 0010 END HTH, /Scott Ballinger Pareto Corporation Edmonds WA USA 206 713 6006 -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Friday, March 03, 2006 3:44 PM To: [email protected] Subject: Re: [U2] PCL within a form What are the other syntaxes? This didn't work correctly. Karl <quote who="Ron White"> > <ESC>*p0y0X > > set vertical position to zero <esc>*p0Y set horizontal position to > zero <esc>*p0X > > The code changes depending on whether you are using number of rows, > number of dots (which is what I am showing) or number of decipoints > > Ron White > > > [EMAIL PROTECTED] wrote: >> <quote who="George Gallen"> >> >>> also try looking for: >>> >>> <ESC>&l0H or <ESC>&l0h (That's ESC-&-ell-zero) eject page <ESC>&a0G >>> or <ESC>&a0g (That's ESC-&-a-zero) advance to next side >>> >> >> The first &l0H was the key for not form feeding. Now I need to figure >> out how to 'embed' the image and set the print head at 0x0y, which I >> think is >> this: ESC:&a0r0C >> >> If not, does someone know for sure? >> >> Thanks, >> >> Karl >> >> >>> George >>> >>> >>>> -----Original Message----- >>>> From: [EMAIL PROTECTED] >>>> [mailto:[EMAIL PROTECTED] Behalf Of >>>> [EMAIL PROTECTED] >>>> Sent: Friday, March 03, 2006 2:28 PM >>>> To: [email protected] >>>> Subject: [U2] PCL within a form >>>> >>>> >>>> We have a PCL logo that we'd like to include in an invoice, but >>>> when we try sending it, we get a separate page with the logo on it. >>>> >>>> Here's what we've tried: >>>> >>>> scanning the logo and then placing it on the 'page' where we want >>>> it, then printing it to a PCL file. That is the file we cat to the >>>> invoice. >>>> >>>> It seems that when printing to a PCL file, the top of form and page >>>> end are set for us and embedded in the PCL output file. We've seen >>>> the ESC:'E' >>>> character at both the top and bottom of the PCL file, but removing >>>> them doesn't help. >>>> >>>> Any ideas? >>>> >>>> TIA >>>> >>>> -- >>>> karl >>>> >>>> _/ _/ _/ _/_/_/ ____________ __o >>>> _/ _/ _/ _/ _/ ____________ _-\<._ >>>> _/_/ _/ _/_/_/ (_)/ (_) >>>> _/ _/ _/ _/ ...................... >>>> _/ _/ arl _/_/_/ _/ earson [EMAIL PROTECTED] >>>> >>>> -- >>>> IT Director, ATS Industrial Supply, Inc. >>>> http://www.atsindustrial.com >>>> Toll-free: 800-789-9300 x29 >>>> Direct2Desk: 801-978-4429 >>>> Facsimile: 801-972-3888 >>>> -- >>>> ------- >>>> u2-users mailing list >>>> [email protected] >>>> To unsubscribe please visit http://listserver.u2ug.org/ >>>> >>>> >> >> >> > -- karl _/ _/ _/ _/_/_/ ____________ __o _/ _/ _/ _/ _/ ____________ _-\<._ _/_/ _/ _/_/_/ (_)/ (_) _/ _/ _/ _/ ...................... _/ _/ arl _/_/_/ _/ earson [EMAIL PROTECTED] -- IT Director, ATS Industrial Supply, Inc. http://www.atsindustrial.com Toll-free: 800-789-9300 x29 Direct2Desk: 801-978-4429 Facsimile: 801-972-3888 -- ------- u2-users mailing list [email protected] To unsubscribe please visit http://listserver.u2ug.org/ ------- u2-users mailing list [email protected] To unsubscribe please visit http://listserver.u2ug.org/
