Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printing Problem...
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00156750
Message ID:
00157071
Views:
21
Steve,

What exactly are you trying to accomplish here with PRINT, ALTERNATE and the MEMO field?

A few things that pop out:

You shouldn't mix SET PRINTER and SET ALTERNATE use one or the other depending on where you want the current ?/?? output to go.

You have to SET ALTERNATE ON

You have to SET ALTERNATE OFF, SET ALTERNATE TO to close the file you are about to append into the memo.

>My code is something like this:
>
>In the Click procedure of a Print command button:
>GET PRINTER()
>SET PRINTER ON
>SET ALTERNATE TO a text file
>I create the report using
>? 'THIS IS MY REPORT'
>?
>? 'THAT'S AN EXAMPLE'
>
>Then,
>
>In the Valid procedure of a Print command button:
>CREATE CURSOR TEXTFILE(filename c(60),mem m)
>
>and then APPEND MEMO mem FROM report.txt
>
>EJECT PAGE
>
>SET PRINTER OFF
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform