Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printing to Dot Matrix Printers
Message
De
23/09/2003 13:43:37
 
 
À
23/09/2003 13:35:34
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00831589
Message ID:
00831595
Vues:
14
Hello John;

You Can't do it (with this way) !

But, There is a very shortcut path for you.. If you add a printer named GENERIC TYPE (in portuguese: Genérico somente texto) You'll have what you looking for..

You need to stabilish a connection with the printer using ASCII code not GRAPHICS characters.. So the printer will be faster as you want..

HTH


Claudio

>We are printing directly to the Dos port in order to stop windows
>from intercepting the print process so that the Customers Account Statement
>will print faster.
>
>DO WHILE NOT EOF("Customer")
>
> *-- Before we print each Customers Account Statement we issue the following
>
> m.cFileName = oApp.cTempDir +"\"+ SUBSTR(SYS(2015), 3) + ".prn"
> SET SAFETY OFF
> SET PRINTER TO (m.cFileName)
> SET CONSOLE OFF
> SET PRINTER ON
>
> *-- we do the usual print commands and this is all captured to the file m.cFileName
>
> ? Customer.custadd1 AT 5
> ? Customer.custadd2 AT 5 etc etc etc
>
> *-- when we are ready to print we issue the following...
>
> SET PRINTER OFF
> SET CONSOLE ON
> SET PRINTER TO
>
> COPY FILE (m.cFileName) TO lpt1.dos
>
> ERASE (m.cFileName)
>
> SKIP +1 IN Customer
>
>ENDDO
>
>The above has been working fine except when going to a local printer and we
>want to print 100's of statements, the computer comes back with an error "Error writing to device"
>after about the 5th /6th Statement print.
>
>Does anybody know why this is causing an error.
"Now to him who is able to do immeasurably more than all we ask or imagine, according to his power that is at work within us, Ephesians 3:20
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform