Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
PRINT TO FILE
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00295649
Message ID:
00296153
Vues:
26
>>Hi,
>> I get the point here. However, I don't know how to get my .txt file (created by REPORT FORM .... TO FILE command) to be printed as I designed programmatically. Cetin told me to use TYPE command but it doesn't work. The file was printed unproperly with funny character.
>> How could I get my report (saved in .txt file) to be printed as usual?
>>
>>Thank you
>
>Hi John,
>
>To send to printer the file created with REPORT FORM .... TO FILE use
>COPY /B ... command from the DOS prompt, (or use RUN COPY /B ... command from VFP)
>

Using COPY with the RUN command is not safe; COPY is an internal command, and the RUN will fail on some platforms. If you have to use COPY, you need to explicitly invoke a command processor with the RUN statement:

RUN COMMAND /C COPY /B Filename known, platform format dependent device id

The avoidance of the command processor invocation, and the platform-specific device name format, are the main reasons to use the CopyFile() API or an automation object like Scripting.FileSystemObject to do the work.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform