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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Maximizing Report Preview

Status
Not open for further replies.

VFP602

Programmer
Jan 23, 2002
41
MP
This might sound an old question but I was stuck on this for quite a while. I can't maximize report preview window via the KEYBOARD '{CTRL+F10}'. Tried running my report on both VFP6 and 7 and it still didn't work. As an alternative, I just define a window and maximize it and it worked. But I'm still wondering why the KEYBOARD '{CTRL+F10}' is not working.. Any idea?
 
VFP602

The '{CTRL+F10}' is not really avisable because if you have a form running in the background, the form also will be maximized. I would suggest to use a more OOPish way of doing it.
Code:
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()


Mike Gagnon
comp14.gif
 
Though, it does the same result whether I do it the usual way by 'Define window.....', I guess it's much better to do it the OOP way as this will familiarize myself with OOP. Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top