Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printing using vfp in NT giving problem
Message
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00339663
Message ID:
00339730
Views:
18
Hi
Why do you send a chr(17) in the end of your string?? This will have the printer waiting for an Escape sequence.
Also, try to use ??? to send stuff straight to the printer port.

HTH
Jaime
>Hi,
>
>My application require the use of Star Thermal receipt printer for
>printing. However, when I issue the command below, the printer
>does not print at all. I can see only the queue in the printer spooler. Next, NT4( with service pack 6a) will prompt of error writing to this device.
>
>" Error writing to LPT1: for Document Visual Foxpro: The device is not ready. Do you wish to retry or cancel the job".
>
>I am using the generic text printer driver that come with NT4 workstation.
>
>
>SET PRINTER TO LPT1
>SET DEVICE TO PRINTER
>SET PRINT ON
>
>?? 'Testing'+chr(27)
>
>SET PRINT OFF
>SET PRINTER TO
>
>Please advise me. Thank you
Why do programs stop working correctly as soon as you leave the Fox?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform