Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Define window
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Miscellaneous
Thread ID:
00664158
Message ID:
00664175
Views:
24
Add GROW to the command:

define window wReport from 0,0 to 100,200 title "MyReportPreview" system close GROW

You can also add MINIMIZE FLOAT and ZOOM too.

Cathy

>I would like to view a report preview inside a window, so I issued the following code:
>
>
>SELECT CQUEST
>define window wReport from 0,0 to 100,200 title "MyReportPreview" system close
>activate window wReport
>zoom window wReport max
>REPORT FORM myReport NOEJECT NOCONSOLE window wReport TO PRINT prompt preview in screen
>release window wReport
>
>
>This does put my report into a window, however the zoom feature doesn't seem to take into consideration the status bar at the bottom and makes it the same size as the current window, which places the bottom scrollbar under the status bar (where the user can't use it).
>
>I have played with maximize, nomaximize, zoom and mdi in the define window command and can't seem to get the right combination for fixing the problem.
>
>I've also tried setting:
> _screen.ActiveForm.MinButton
> _screen.ActiveForm.MaxButton
> _screen.ActiveForm.ZoomBox
>true and false to get the desired results, and can't seem to make it work correctly.
>
>anyone know what I'm doing wrong?
>
>Sharon
Cathy Pountney, Microsoft Visual FoxPro MVP
Memorial Business Systems, Inc. (www.mbs-intl.com)

My Website: (www.frontier2000.com)
My Blog: (www.cathypountney.blogspot.com)
My Book: The Visual FoxPro Report Writer - Pushing it to the Limit and Beyond
Free MSDN Article: What's New in the VFP 9.0 Report Writer
Free MSDN Article: The VFP 9.0 Report Writer In Action
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform