Little Doubts with Reports - Tables Area...........
Hi there,
I have a problem with my reports preview. Actually I used a free Table and its used in area12
[Select 12] in a form. And the Report - Preview is through a command button of a Form…
In Command- Window the report is working good [ie. . Do form “abcd1.scx”].
At the same time after compiling EXE, if I click the button its’ saying error something like…
……….. “File Does not exist”
But if I run through the command window …its running very properly…no errors….
My codings in the Preview Button is following…
USE hd_wkassign AGAIN IN 12 EXCLUSIVE
SELECT 12
GO top
SET FILTER TO
GO top
SET FILTER TO en_date=medt1
GO top
INDEX on super_id TO spspspid2
REINDEX
GO top
SET REPORTBEHAVIOR 90
LOCAL PviewCon1, ax AS ReportListener
DO (_REPORTPREVIEW) WITH PviewCon1
PviewCon1.Caption = 'PIS Special Report'
PviewCon1.ZoomLevel = 5
PviewCon1.ToolbarIsVisible = .F.
ax = CREATEOBJECT('ReportListener')
ax.QuietMode = .T.
ax.DynamicLineHeight= .T.
ax.AllowModalMessages = .T.
ax.ListenerType = 1
ax.PrintJobName = "AL MASHARIQ - Foreman's Work Program"
ax.PreviewContainer =PviewCon1
SET SYSMENU off
thisform.WindowState = 2
REPORT FORM "C:\My_Development\Time_Sheet\employees work program_1.FRX" PREVIEW OBJECT ax NOWAIT
PviewCon1.oForm.Toolbar.Dock(0)
PviewCon1.oForm.WindowState = 2
PviewCon1.oForm.ICON="c:\my_development\my_icons\note04.ico"
-
I feel may be I have to specify the area of table to open in the report …. …may be is it that error?
Kindly give me an idea to rectify this problem….
With Regards PARAMU

