>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