Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reports Act funny with the tool bar
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00060288
Message ID:
00060296
Views:
24
>>I am trying to solve a problem in VFP 5.0 that I think is one of the most inconsistant things I have seen. I have a few reports that run from a form. The report works off of a temporary table created from a Query. I have two methods in this form named PrintReport and Preview. When I call these methods from a tool bar the reports let me preview/Print the first page of the report. But if I try to go to the second page, it produces an incomplete page. But the same code called from a button on the form itself does not produce erronious results. I thought the problem could be with data sessions. But the Tool bar and the form are on the default Data session.
>>If any of you could please help me to solve this problem I will greatly appreciate.
>>
>>
>I've had same problem, this is a bug that several people have reported. My workaround is: from the toolbar button, run the button click on the form...or similar method where the toolbar is not actually running the report, just acting as an intermediary, calling something on the form that runs the report...

Added note: try just Setfocus to something on the form in toolbar click, followed by print method call...this is what my "refined" code has...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Previous
Reply
Map
View

Click here to load this message in the networking platform