Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
PCL commands in Reports
Message
 
 
To
18/11/1998 02:18:27
Man Wai Chang
Hang Hing Metal Manufacturer
Hung Hom, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00158497
Message ID:
00159132
Views:
16
>>If I load the Window 98 driver, or laserjet 4 driver the
>> command simply prints in the footer instead of executing the PCL.
>> I've tried calling a UDF to send the PCL codes, but that sends
>> a separate job to the printer instead of imbedding the code
>> into the print job of the report. Any comments are appreciated.
>
>You should be able to use UDF() in your report form
>which sends the PCL code to the printers.
>
>the field on report form:
>
> pclcode(1)+TABLE1.FIELD1
>
>where pclcode() is:
>
>function pclcode
>parameter m.select
> do case
> case m.select=1
> ?? chr(27)+...
> case m.select=2
> ?? chr(27)+...
> endcase
>return ""

Thanks for the help. When I have tried this in the past, it seems to send PCL commands outside of the report print job. In other words, if I watch the print manager, I will see the report print job and then a separate job with the PCL code. However, I used ??? not ??. Do you think this makes a difference? I know I can get it to work if I bypass the print driver and just copy the ASCII file to the printer, but I would really prefer to use the windows driver.

Marcus.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform