Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
API CopyFile Function
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01241078
Message ID:
01241082
Views:
22
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform