Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Full Screen Preview
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00402760
Message ID:
00402782
Views:
10
>I've built some reports with the report designer and they work great, but when I run them from my executable, they come up in a restored view (or normal) instead of full screen. I've used the windowstate property for forms and _screen, but I can't find a properties box for my form.
>
>How do I tell my reports to be maximized?

I have built a method on my base form called sendreporttopreview
LPARAMETERS tcReportName, tcReportTitle

LOCAL loForm
_SCREEN.CONTROLBOX = .F.
loForm = CREATEOBJECT("Form")
WITH loForm
  .WINDOWSTATE = 1
  .CAPTION = tcReportTitle
  .MINBUTTON = .F.
  .MAXBUTTON = .T.
  .CLOSABLE = .T.
  .MOVABLE = .T.
  .HALFHEIGHTCAPTION = .T.
  .BORDERSTYLE = 3
  .SCROLLBARS = 3
  .BACKCOLOR = RGB(255,255,255)
ENDWITH
lcFormName = loForm.Name
KEYBOARD '{CTRL+F10}'
REPORT FORM &tcReportName PREV WINDOW &lcFormName
_SCREEN.CONTROLBOX = .T.

RELEASE loForm
The reason I did this was I wanted to control the fact that I did not want the user to close the app accidentally when they tried closing a full screen preview. Which users here did. So I create a form on the fly and turn the main screen close option off while they view the report preview. When they are done viewing I turn back on the screen closeable option.
Bret Hobbs

"We'd have been called juvenile delinquents only our neighborhood couldn't afford a sociologist." Bob Hope
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform