Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Facing Problems with VFP-Reports
Message
From
29/08/2007 05:26:40
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Facing Problems with VFP-Reports
Miscellaneous
Thread ID:
01251091
Message ID:
01251091
Views:
63
Hi There,

Actually I build one report and it preview by a command button of Top Level Form. When I click first time the report is previewing in a full screen...as a Top level. Once if I close the report the form is also closing..So I need to solve this problem…Anyone to help for me please….

Also, If I run the same form in second time, the report is previewing inside the tool bar of form…..So any one to help me please

The codings are given below…

SET REPORTBEHAVIOR 90
LOCAL JoPreviewContainer, Jx AS ReportListener
DO (_REPORTPREVIEW) WITH JoPreviewContainer
JoPreviewContainer.Caption = 'PIS Special Report'
JoPreviewContainer.ZoomLevel = 5 && 100%
JoPreviewContainer.ToolbarIsVisible = .F.
Jx = CREATEOBJECT('ReportListener')
Jx.QuietMode = .T.
Jx.DynamicLineHeight= .T.
Jx.AllowModalMessages = .T.
Jx.ListenerType = 1
Jx.PrintJobName = "AL MASHARIQ - Employee's Work Assignment General Report"
Jx.PreviewContainer =JoPreviewContainer
REPORT FORM "C:\My_Development\Wk_Ass.FRX" PREVIEW OBJECT Jx NOWAIT
JoPreviewContainer.oForm.Toolbar.Dock(0)
JoPreviewContainer.oForm.WindowState = 2

By PARAMU
Reply
Map
View

Click here to load this message in the networking platform