Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

report preview in full screen problem

Status
Not open for further replies.

engan

Programmer
Jul 15, 2001
53
ID
hi, does anybody know how to do full screen report preview ?
I use ctrl+f10 to expand to fullscreen but when I execute the second time, it won't display full screen.
here is my code :

KEYBOARD "{CTRL+F10}" CLEAR
REPORT FORM MyReport.FRX PREVIEW NOCONSOLE

EngAn
 
Hi EngAn
************************************
oRepForm = CREATEOBJECT("Form")
WITH oRepForm
.Caption = "Report Window"
.WindowState = 2
.Show()
ENDWITH
REPORT FORM (rptFile) PREVIEW WINDOW ;
(oRepForm.Name) TO PRINTER PROMPT
oRepForm.Release()
***************************************
:)

ramani :)
(Subramanian.G),FoxAcc, ramani_g@yahoo.com

 
Ramani:

Here's a generic function for your solution...

I use numerics for return values to the calling
process, so the function can be extended with
additional error detection functionality.

Darrell

FUNCTION PrintPreview(lcReportForm, lcReportTitle)
LOCAL oRepForm
IF !FILE(lcReportForm)
RETURN 1
ENDIF
oRepForm = CREATEOBJECT("C_ReportForm",lcReportTitle)
oRepForm.SHOW()
REPORT FORM (lcReportForm) PREVIEW WINDOW (oRepForm.NAME) TO PRINTER PROMPT
oRepForm.RELEASE()
RETURN 0
ENDFUNC

DEFINE CLASS C_ReportForm AS FORM
DOCREATE = .T.
CAPTION = "Report Preview"
WINDOWSTATE = 2

PROCEDURE INIT(lcRepTit)
THIS.CAPTION = IIF(VARTYPE(lcRepTit)=="C",lcRepTit,THIS.CAPTION)
ENDPROC
ENDDEFINE

'We all must do the hard bits so when we get bit we know where to bite' :)
 
Ramani, I try your suggestion and it works. But I still got one window behind the report window. When I minimize the report window, the window behind report window cannot be closed or minimized. The caption of this window is the same as my report window. Is it possible to remove/hide this window ?
Eng An
 
engan

Instead try putting this:
In the init() of the Dataenvironment of the report

ZOOM WINDOW 'Report Designer' MAX


Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top