Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printing an ASCII file in NT (Fox 2.6a for Win)
Message
 
À
09/06/1997 17:03:36
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Divers
Thread ID:
00035716
Message ID:
00035754
Vues:
36
> >I have an app in Windows that creates reports using DOS-only definitions. > This is done to allow preview using MODIFY FILE (and hence search > capabilities not possible in a graphical preview). If the user wishes to > print a segment of the report, I issue a RUN COPY FOX12CPI.drv+PAGERNG.asc > LPT1 >NUL > > > >This has worked fine for years until the user switched to Windows NT 4.0 > > > >Now the RUN COPY doesn't work anymore. > > Actually RUN COPY still works in WinNT, but you should first tell computer > where LPT1 located. So you firstly > RUN Net Use LPT1: \\server\printer /persistent:yes > and now you can > RUN COPY filename LPT1 You may also have to use the /B switch on the copy command. When copying to a device, DOS & everything else frequently terminate at the first EOF (chr(26)) that they see. By using /B, you specify to copy a binary file. That is, copy everything 'til the file runs out of bytes. --
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