Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to display a report maximized
Message
 
To
21/09/2006 00:31:04
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
01155439
Message ID:
01155854
Views:
25
oRepForm = CREATEOBJECT("Form")
WITH oRepForm
 .Caption = "My report Title"
 .WindowState = 2   **This will maximize the form
 .Show()
ENDWITH
REPORT FORM myReport.frx PREVIEW WINDOW (oRepForm.Name)
oRepForm.Release()
>Barbara,
>
>thanks for the input. ZOOM WINDOW MAX is smart. I use a DEFINE WINDOW .. REPORT PREVIEW WINDOW construct. because I like to have something that is a little bit smaller the maximized.
>
>You wrote about using a FORM. How does this work? (I'm just curious. I'm skiping to REPORTBEHAVIOUR 90 with a selfdefined preview-object now, so the old style is not that import any more.)
>
>Agnes
>>>I am using VFP 8.0
>>>I have created a MDI form and use the same as my desktop for the application.
>>>To preview the reports I use _screen
>>>The code is as follows:
>>> _screen.Visible = .T.
>>> _screen.WindowState = 2
>>> REPORT FORM rptCustomerMaster PREVIEW IN SCREEN TO PRINTER PROMPT
>>> _screen.Visible = .F.
>>>Now the problem is I am not able to show the report window so generated as maxzimized.
>>>Can anyone please suggest me a solution.
>>
>>There are several solutions to this. One is to create a form with WindowState set to 2, as Agnes suggests, and send your report to that form.
>>
>>Another is to SET RESOURCE TO a file that you ship with the app. If you run the report yourself and maximize it before you deliver the app, that setting will be stored in the resource file.
>>
>>The easiest way (I think) is to put a ZOOM WINDOW MAX command in the BeforeOpenTables method of the report's DE.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform