Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printing with ???
Message
From
09/05/2005 12:45:57
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01012084
Message ID:
01012202
Views:
25
Hi Jan,


I use the ??? to print to POS printers, your problem never ocurred to me, but i have to create a Generic printer in Windows.
Then i use code like this:

* Print directly to printer
SET DEVICE TO PRINT
SET PRINTER TO

= imprime("Test line 1")
= imprime("Test line 2")
= imprime("Test line 3")

SET DEVICE TO SCREEN
SET PRINTER TO
set printer off


* Function imprime
function imprime
lparameters m.texto
n.errof = on("error")

on error *
??? M.TEXTO
??? CHR(10)

on error &errof
return .t.


>Greetings everyone
>
>I have a need to print to dot matrix printers direcly without using the windows printer driver. Normally this is not a problem using the tripple question mark, howver if you use the Name option to set the printer to, you get a form-feed pre-pended to the print stream.
>
>Is there anyway to suppress the form-feed ? I have tried this on a number if different networks and the results are consistent.
>
>Additional info:
>The printer is an inherited printer from Terminal Server - Terminal Server has a bit of a "quirk" - inherited printers have a NAME only - no device so you must print to them via: SET PRINTER TO NAME My_Local_Printer
>
>Then when you output something it it [ like a small file using ??? [ three quesion marks ] you get the dreaded ff appended.
>
>Does anyone know of a way to get around this ?
>
>TIA
>Jan Siegrist
>jsiegrist@healthcare-automation.com
Previous
Reply
Map
View

Click here to load this message in the networking platform