Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Escape Codes (PCL) within Report Designer
Message
From
18/07/2001 12:00:33
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, United Kingdom
 
 
To
18/07/2001 08:21:21
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00531924
Message ID:
00532061
Views:
25
>Greetings,
>
>I am trying to add PCL- (HP Printer Control Language ver 5) to the Report Designer, example: to print out (secure) Signature Font. Storing (the known PCL) in a cursor or variable has not worked, nor has browse myreport.frx . Also I have viewed (hex editor) "myreport.prn" {report form myreport to file myreport.prn} and can see the PCL code but difficult to understand, and know where to insert desired code.
>
>Welcome: Suggestions / Help
>
>Sincerely,
>Arthur


Hi,

I use PCL quite a bit. I've had a quick look, and I can't yet see an easy way for you to embed PCL in a FoxPro report. When I try it, something (VFP or more probably the Windows printer driver) translates my embedded 'ESC' characters into spaces.

Here's a quick suggestion - try putting a placeholder string into your report, do a REPORT FORM xxx TO FILE file.pcl, then use low-level file functions (FOPEN, FREAD, FRWITE) to open the file and exchange your placeholder with the PCL code for the signature. You can finally print the document by doing a copy to LPT1: (or wherever).

If I think of a better solution, I'll let you know.
Regards
Mark

Microsoft VFP MCP
Menulib - OO Menus for VFP www.hidb.com/menulib
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform