Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why does my form not start maximized?
Message
From
05/03/2004 11:21:02
Reza Meamar
Homa Programming Group
Shiraz, Iran
 
 
To
05/03/2004 10:56:03
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00882789
Message ID:
00883517
Views:
12
tracy test below code . i get this from microsoft site. test it if you like.

PROCEDURE PreviewReport
LPARAMETERS cReportName, cReportTitle
IF (VARTYPE(cReportName) != "C") OR EMPTY(cReportName)
RETURN .F.
ENDIF
cReportName = ALLTRIM(cReportName)
IF ATC(".",cReportName) = 0
cReportName = cReportName + ".FRX"
ENDIF
cReportName = oMainObject.cReportsDir + cReportName
IF !FILE(cReportName)
RETURN .F.
ENDIF

IF (VARTYPE(cReportTitle) != "C") OR EMPTY(cReportTitle)
cReportTitle = "My Report"
ENDIF

LOCAL lnScaleMode
lnScaleMode = _Screen.ScaleMode && Save current scale mode.
_Screen.ScaleMode = 0 && Set scale mode to Foxel.

*-- Define the hosting window.
DEFINE WINDOW RepHost FROM 0,0 TO _Screen.Height - 2, _Screen.Width ;
TITLE cReportTitle CLOSE FLOAT GROW ZOOM SYSTEM
_screen.ScaleMode = lnScaleMode && Restore saved scale mode.


*-- Preview the report in the hosting window.
REPORT FORM (cReportName) PREVIEW WINDOW RepHost NOWAIT
ENDPROC
Previous
Reply
Map
View

Click here to load this message in the networking platform