A long time ago, someone shared a way of doing this. Here is what I can recollect...
* Create BitMap image * Place image On a document in desired position (ie msword) * Create a new print to File printer using HP PCL type driver * Print document * Using a hex editor, delete last x number of characters * Determine x by starting at the end and locating *rB. Everything * after that is printer reset string. (<esc>E<esc>%-12345X...) * Save image file from the previous step to a directory accessible from your program * Open and print each line from previous step * sourcepath='/blablabla/':LOGO.ID * openseq sourcepath to file then * loop * readseq line from file else li...@am * until li...@am do * print line * repeat * closeseq file * end Pretty rough but I remember that it was functional. HTH ----- Original Message ----- From: "Harold Oaks" <[email protected]> To: "U2 Users List" <[email protected]> Sent: Monday, May 10, 2010 2:00:35 PM GMT -06:00 US/Canada Central Subject: [U2] Printing images All: In Universe I am able to use PCL commands to customize printing, fonts, spacing, orientation, etc. I'm sure many of you do this. For example by issuing CHAR(27):'(10U':CHAR(27):'(s1p09v0s6b16602T' in front of text the printing is Arial 9 bold. However, I have been unable to figure out how to print images from within Universe. Something to do with 'bit map', but I can't seem to get it. I have a file containing JPG format images. I can copy a record from this file to a windows directory and easily display the image using windows tools. But, how to get the same binary sent to a printer and print that image? Has anyone been able to do this? Thanks! Harold Harold D. Oaks Sr. Analyst/Programmer Clark County, Washington ph: (360) 397-6121 x4132 fax: (360) 397-2342 This e-mail and related attachments and any response may be subject to public disclosure under state law. _______________________________________________ U2-Users mailing list [email protected] http://listserver.u2ug.org/mailman/listinfo/u2-users _______________________________________________ U2-Users mailing list [email protected] http://listserver.u2ug.org/mailman/listinfo/u2-users
