Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
2 Questions about using ??? to print on LQ-300+
Message
From
21/05/2004 11:16:29
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00905943
Message ID:
00906038
Views:
18
1. I think the LQ-300+ has the fonts built-in as I can select those fonts by pressing some hard key combination on its panel (It means the hardware control of fonts works) and there are a font list on that panel too. I remember I checked its PDF manual but it seems does not mention the code for each font. Only know the LED 001 means Draft, 010 means Roman, etc. printed on the panel. I will check the manual again to see I missed it or not.
2. Thanks, I will try your suggestion about printer spooler to see it works on my WinXP or not.


>Power,
>
>You can ignore Hilmar's use one ??? to do the whole report at once. Using several ??? commands works more efficiently.
>
>>Question 1. I don't know how to change fonts during printing. I followed the site http://webpages.charter.net/dperr/links/esc_p2.htm to use "ESC k n" where
>>n = 1 San Serif
>>n = 2 Courier
>
>>But it did not change to any font. My code is:
>>
>>??? chr(27) + chr(107) + chr(1)
>>??? "It is San Serif"
>>??? chr(27) + chr(107) + chr(2)
>>??? "It is Courier"
>
>changing fonts should work using the above code. Are you sure that printer has those alternate fonts installed? Do you have the printer manual for the LQ300+ to check what fonts it supports?
>
>>Question 2. Ignore the problem of fonts, everything is working fine in my Windows 98. But when I copy my program (exe) to a machine which running Windows XP Profressional, after my run my code, the printer doesn't print. It starts to print until I quitted my program by clicked a button which's click event is:
>
>set printer to ...
>set printer on
>??? "your report"
>set printer off
>set printer to
>
>This will cause the print spooler to be closed and send the report to the printer.
Power Wong
Every problem will have a solution, the only problem is that can you find it out.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform