Bryan - Gendev
Programmer
I have recently returned to VFP to produce a small app as a 4 step pageframe in a single top level form.
I want to show a report I have designed and have used ramani's code but the new form and report within it do not show on screen.
Can someone help me over this little hiccup?
Thanks
gendev
I want to show a report I have designed and have used ramani's code but the new form and report within it do not show on screen.
Code:
FUNCTION previewReport
PARAMETERS rptFile
oRepForm = CREATEOBJECT("FORM")
WITH oRepForm
.Caption = "Report Window"
.WindowState = 2
** set properties as you want for DeskTop/TopLevel
.Show()
ENDWITH
REPORT FORM (rptFile) PREVIEW WINDOW (oRepForm.Name) ;
TO PRINTER PROMPT
oRepForm.Release()
RELEASE oRepForm
RETURN .t.
Can someone help me over this little hiccup?
Thanks
gendev