Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
PCL5 commands and Foxpro
Message
De
28/05/1997 17:01:51
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00033623
Message ID:
00033939
Vues:
42
> > What I need to do, is download a logo to the printer's memory then print my > form/report and have the logo transfer from the printer's memory onto the > form. > > Has anyone done this, or know where I can get the pcl commands to do this > ??? > > TIA. I did that once, not with a logo and not PCL (actually, it was six digit numbers large enough so the forklift driver could see it on a box in the refrigerator hall), but the trick is essentially the same. Print the logo from some other program. Capture thr printout into a file. Replace the final formfeed in it with null using any hex editor. Put it into a memo file somewhere. Create a function to write it all up when it comes to printing and make it return empty string. Create an empty space on your report and put that function where appropriate. Run the report (and pray :). The tricky part is where it says "write it all up". The ?? command won't give out a string longer than 256 characters without wrapping (or leaving out the rest, not sure) - try ?repl("x",300), it printed five lines @ 50 and extra 6 Xes for me. The trick can maybe be done by chopping the length of memo field into shorter (128 byte?) parts, or finding gaps in what it prints (linefeeds etc) and cutting it along those lines. OK, that's old technique - quick and dirty. Why not just cram the BMP onto the report and get over with it?

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform