Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Label preview
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Miscellaneous
Thread ID:
00367396
Message ID:
00367577
Views:
20
>Maybe I being to picky but here it goes. :)
>
>When the user closes the report preview by clicking the "X" on the upper right hand corner of the foxpros preview window, it "jams" or "freezes" my menu so I preview it in a window i create.
>
>With REPORT preview I can preview the report in a window defined by me by issuing REPORT FORM myreport PREVIEW WINDOW myPreviewWindow.
>
>However, with label preview I can not preview in a window I defined. Is there a way to do this?

I have this code in a method on by forms called sendreporttopreview it sends a report to preview window I define, I needed this because I wanted to control the close buttons when the report is being previewed and I wanted all report previews to be maximized.
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
Hope this helps
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