Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Vfp50 - How do you display your REPORT?
Message
From
13/05/1997 11:22:33
 
 
To
13/05/1997 11:13:46
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00031762
Message ID:
00031968
Views:
48
>>>>>How do you display your REPORT if you do not want to use
>>>>>REPORT FORM myreport PREVIEW?
>>>>
>>>>I would imagine there are lots of ways to do it. One method I have used in the past is .....
>>>>
>>>>REPORT FORM myreport TO FILE outfile ASCII
>>>>MODI COMM outfile NOEDIT
>>>
>>>Hi Eugene - thanks for that good answer... and it works. Now I need
>>>to be able to put a TOOLBAR in with the REPORT so the user can do things
>>>to the REPORT like the same things the REPORT PREVIEW TOOLBAR does.
>>>The reason why I do not use the REPORT PREVIEW TOOLBAR is because it will
>>>not allow me to add some more buttons. Got any ideas...
>>
>>
>>Well, lets see..you may be able to reference the window of the MODI COMM by specifying the title to the window, but this is FP2.x coding (yech!!!) hehehe
>>
>>Another possibility I see is to save the file into a memo field after writing it out, then you can display it in an edit box on a form. That way you can reference the edit box from the toolbar.
>>
>>REPORT FORM...
>>APPEND MEMO (memofld) FROM (filename)
>>loForm = CREATEOBJECT("formclasswitheditbox") OR
>>DO FORM formwitheditbox
>>
>>You will create an instance of the toolbar from within the form...this way you will be able to tie the toolbar and the form together. This should give you total control over what you want to do with the output, including changing the font size to make it larger.
>>
>>HTH
>>GeneS
>
>thanks.. I do not like the idea of creating a MEMO field, because a MEMO field must APPEND to a table and because this is something I will only use once (each time the report button is clicked). Is there a way to use a MEMO field once and then discard it? I guess I just need a FORM and send the REPORT to a FORM and use a FORMSET do I can include a TOOLBAR. What do you think?


I don't know of a way to send a report directly to a form. But to answer your first question....you can create a temporary cursor which only has the memo field in it....

CREATE CURSOR tmpReport (RptMemo M)
APPEND MEMO RptMemo FROM (filename)

To discard it just use it...
USE IN tmpReport

GeneS
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform