Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to print ascii file ???
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00041223
Message ID:
00043162
Vues:
43
> >My preferred method is to use something like this: > > > >! PRINTFIL &lcFileName > > > >where PRINTFIL.BAT contains: > > > >@echo off > >copy /b %1 lpt1 > >erase %1 > >exit > > > >This copies the file, in binary mode (bypassing any Chr(26)s that it > >sees) to the LPT1 port. You can substitute any valid port for this. > >The exit at the end is to ensure that Windows '95 closes the DOS box. > > > >It's ugly to watch, but it works better than anything else I've > tried. > Do you do the same thing with a network printer without novel capture. > like " \\ordi1\printer1 " The limitation to my method is that it prints to a DOS device. If there's a device called \\ordil\printer1, then there should be no problem. But that's not likely the case, so I couldn't see my method working here. In the environments where I use it, where every printer is mapped to an LPT port, it works like a charm. /Paul
Paul Russell
EMail: prussell@fox.nstn.ca
Phone: (902) 499-5043
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform