General information
Category:
Reports & Report designer
Title:
Facing Problems with VFP-Reports
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only