Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ReportPreview sizing
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01060657
Message ID:
01060871
Views:
10
>I'm obviously missing something here, but I'm just not seeing it right now; maybe someone can help.
>
>I'm trying to automatically size the report preview container during a preview. I'm using code similar to this:
>
>
>LOCAL loPreviewContainer, ;
>      loListener, ;
>      lcReportPreview
>
>      DO (_REPORTPREVIEW) WITH loPreviewContainer
>
>      WITH loPreviewContainer
>           .AllowPrintFromPreview = .F.
>           .Top = _screen.Top
>           .Left = _screen.Left
>           .Width = _screen.Width
>           .Height = _screen.Height
>      ENDWITH
>
>      loListener = CREATEOBJECT("ReportListener")
>      loListener.PreviewContainer = loPreviewContainer
>      loListener.ListenerType = 1
>
>      REPORT FORM Sample OBJECT loListener
>
>
>The option to disable printing from the preview works, but sizing the preview screen doesn't. What the heck am I missing?

How about setting the WindowState property to 2 (maximized)?
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform