Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to dock Print Preview toolbar?
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00131663
Message ID:
00131722
Views:
25
>
>Thanks for the fast response. I tried your idea with little success. Maybe you could look at the following and tell me where I am going wrong:
>
> KEYBOARD "{CTRL+F10}"
> loReportForm = CREATEOBJECT('Form')
> loReportForm.Name = 'ReportForm'
> loReportForm.Caption = "Asset Depreciation Short Report"
> REPORT FORM Report02a PREVIEW WINDOW ReportForm
> IF wexist("Print Preview")
> MOVE WINDOW 'Print Preview' TO 10,10
> MOUSE DBLCLICK AT 11,11
> ENDIF
>

REPORT FORM ... puts the system in a wait state (waiting for you to close the report window). When the report form is closed, the preview toolbar is gone, and so it does not work.

You can either:

1. REPORT FORM .. PREVIEW .. NOWAIT. This will not cause a wait state and the code should run. The problem this will cause is that since you are no longer in a wait state, code keeps running: something that you probably dont want (given the fact that you arent asking "Why do I always have to stop execution when previewing a report <g>).

2. Try putting the IF WEXIST(... code into the OnEntry of the Title Band of the report.

3. Provide the user with a readonly resource file that has the toolbar already docked. This causes the least visual "jumping" effect
Rick Hodder
MCP Visual Foxpro
C#, VB.NET Developer
Independent Consultant
www.RickHodder.com
MyBlog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform