Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DOS Copy Command/VFP 6.0
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00244498
Message ID:
00245442
Vues:
45
>Dan,
>
>Here's a pure FoxPro code solution that I use for sending PCL to an HP printer:
>
>
   create cursor temp1 ( mForms m )
>   append blank
>   append memo mForms from forms.pcl
>   wait window "Downloading claim forms to the printer" nowait
>   ??? "" + temp1.mForms && can't ??? a memo directly so make it a string
>   use
>
Dave -

I like your approach for creating a document with PCL but how do you change the fonts? The documents I generate use multiple fonts (including bitmap fonts to display company logos/signatures)? Do you embed the necessary escape sequences in "forms.pcl" before processing it? (I'm assuming that the append to memo could be replaced with FILETOSTR() in VFP60). The system I'm completing is table driven allowing individual "print objects" to be selected when a document is created. Based on the user settings for the X and Y coordinates of the selected objects, I use PCL to manipulate the printer and send the applicable ESC sequences to change printer position, font attributes and text. Assuming the overhead isn't too extreme, it might prove to be much 'cleaner' (and easier to maintain) to create a low-level file and then send a single PCL command. Any thoughts?
Dan
St. Petersburg, FL

"I started out with nothing and I still have most of it left"
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform