>Thanks for telling me about the declare file command but I can't get it to work. I don't really understand it that well. Can you help me with it?
>
>Here is what I have,
>
>declare integer CopyFile in Kernel32.dll;
> string ;
> string ;
> integer;
>
>
>for i = 1 to numlabel
>* I get an error here that says to many arguments
>CopyFile('\lcc\reports\testfile','PRN:',0) && the default printer
>endfor
>
I assume you've read my FAQ entry (#524 How do I copy a file to print port) ; the DECLARE is wrong, in that both strings should be STRING @; the reason that you're getting "too manyy arguments" is that you've omitted the commas between each argument, which must be present. PRN: may not be a valid device name ; it is not assinged by default by WinNT, for example, so without having taken some positive action under NT, it doesn't work.