Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dos like printing from in foxweb
Message
From
31/08/2005 13:52:13
 
General information
Forum:
Visual FoxPro
Category:
FoxWeb
Miscellaneous
Thread ID:
01044888
Message ID:
01045592
Views:
20
>Use using a foxweb based website
>
>I use @say to print my fields to a TXT.file
>Then I use the lines below, as I use in my PC
>But is does not work
>
>Anybody has a clue ?
>
>
>DECLARE INTEGER CopyFile IN KERNEL32.DLL ;
>     STRING @SourceFileName, ;
>     STRING @DestFileName, ;
>     INTEGER bFailIfExists
>  IF CopyFile('REEMB.TXT','LPT1:',0) # 0
>     *  It was copied
>  ELSE
>     *  it wasn't
>  ENDIF
>
What is the error return code? Also, what user is the FoxWeb service running under? System user does not have access to shared resources. Why are you using this technique for printing and not more modern method liek REPORT FORM?
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform