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:
00157165
Views:
27
Steve,

Is there a reason you aren't using the builtin REPORT PREVIEW?

If you want to stick with the older style ?/?? for the form display bag the printer entirely.

set alternate to test.txt
set alternate on
? "Line One"
? "Line Two"
set alternate off
set alternate to

append memo xyz from test.txt
thisform.Refresh() && assuming this code is running in a method on a form and the editbox is bound to the memo field

From the Print button I'd just build a report form and drop the memo field on it.

Also In VFP use the CommandButton.Click() method instead of the Valid() which is a hold-over to 2.x buttons.

>I am generating an on-the-fly report to the screen inside of a form. But I am not using a report. Instead I am using question marks to layout the lines one after another in the scrolling edit box that I am working inside of. I guess I should have mentioned the edit box earlier on. That has alot to do with what I'm doing.
>
>At the last minute the people I am diong this for, asked me to add a Print command button to the Edit box form so they could print what is showing in the Edit box report.
>
>Does that make more sense? Sorry I confused you.
df (was a 10 time MVP)

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

Click here to load this message in the networking platform