Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
File access problem still unsolved
Message
 
 
To
01/11/1999 12:12:38
Thomas Ianuzzi
Information Security Consultants, Inc.
Florida, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00284854
Message ID:
00284937
Views:
20
If you are creating a file to transfer data to another app, why don't you use the TextMerge capabilites instead of messing with print commands?


>I am wititing a file to transfer data from FoxPro to another application and am using the following code:
>
>SET SAFETY OFF
>
> SET PRINTER TO NewYellow.iif
> SET PRINTER ON
> SET CONSOLE OFF
> ???''
> SET PRINTER OFF
> SET PRINTER TO
> SET CONSOLE ON
>
>* OPEN THE FILE FOR USE
>
> SET PRINTER TO NewYellow.iif ADDITIVE
> SET PRINTER ON
> SET CONSOLE OFF
>
>*MANY LINES OF OUTPUT TO THE FILE FOLLOW
>
>As you can see, I access the file Newyellow.iif twice. The first time to empty it and the second time to add output. When this code is run in the FoxPro interactive mode it works fine, but when it is compiled into an application or if i specify a path for the file I get a printer not ready message, Anyone have any thoughts as to how I can correct this problem
Mark McCasland
Midlothian, TX USA
Previous
Reply
Map
View

Click here to load this message in the networking platform