Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printing a file directly to a printer
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01351589
Message ID:
01351593
Vues:
23
Check RawPrint.vcx from Downloads section here.

>I have aprinting application residing on a novell server, that I send a print job to a printer via the nprint command.
>
>Now the user is moving away from novell, and the same printer i now on an ip address.
>
>The easiest way to print to the printer is local via the command copy filename lpt1:
>
>I have been trying to use the copyfile api function. via
>
>Declare INTEGER CopyFile IN KERNEL32.DLL ;
>	STRING @SourceFileName, ;
>	STRING @DestFileName, ;
>	INTEGER bFailIfExists
>lnError=CopyFile(cSourceFileName,cPortOrUNC,0)
>
>
>cSourceFileName='Test.Txt'
>cPortorUNC=\\192.168.1.70 - the address of the printer on the new network
>
>
>Or is their a simpler way to send a text file to this printer. This printer expects a text file, with all control codes in it.
>Mike
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform