Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Page Setup
Message
From
07/02/2000 13:14:27
 
 
To
07/02/2000 12:59:27
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Miscellaneous
Thread ID:
00326803
Message ID:
00328369
Views:
29
>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.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform