Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
API CopyFile Function
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01241078
Message ID:
01241082
Vues:
24
>OK, I'm using the following code to print to a printer... (specialized printer, can't just print it.)
>
>
>Declare INTEGER CopyFile IN KERNEL32.DLL ;
>	STRING @SourceFileName, ;
>	STRING @DestFileName, ;
>	INTEGER bFailIfExists
>If CopyFile(cSourceFileName,cPortOrUNC,0) # 0
>Else
>    =messagebox("Failed To Print Label",64,"PRINT ERROR")
>Endif
>
>
>Now if it fails, is there any way to find out why?
>
>TIA,
>Mike

Try to find this information with http://www.berezniker.com/display/VFP/Retrieving+Windows+system+error+message
If it's not broken, fix it until it is.


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

Click here to load this message in the networking platform