Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DOS Copy Command/VFP 6.0
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00244498
Message ID:
00245612
Views:
31
Dan,

That code downloads a set of macros that hold the front and back pages of several different forms. I actually built the forms from VFP code. Font changes are accomplished with the necessary PCL command I typically only used the built in fonts from the LJ3 printers on.

In the rest of the app I use ??? to execute the macros along with some XYPrint( nXInches, nYInches, cString ) functions that output the fields in the right place on the form. The code came out of an old VFP5 app. FileToStr() is by far the better choice in 6.

>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?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform