TfrxPreviewX & VB6
Hello
Really would appreciate anyone giving this newbie with Fast Reports a helping hand. Trying to use the TfrxPreviewX component within VB6 so that I can preview a report on a form.
Looked through the forum / manual but can't get to grips with it.
I get a Error 91 Object Required.
Thanks
Really would appreciate anyone giving this newbie with Fast Reports a helping hand. Trying to use the TfrxPreviewX component within VB6 so that I can preview a report on a form.
Looked through the forum / manual but can't get to grips with it.
Dim TfrxPreviewX1 As FastReport.TfrxPreviewX
Dim Rpt As FastReport.TfrxReport
Private Sub Form_Load()
Set Rpt = TfrxReport.Create(Nil) <<<Error 91 here
Rpt.PreviewOptions.Maximized = False
Rpt.PreviewOptions.Modal = False
Rpt.LoadFromFile ("C:\Program Files (x86)\FastReports\FastReport Studio\Examples\VisualBasic\VB6_Demo\ADOQuery_Casting\Casting.fr3")
Call Rpt.PrepareReport(True)
Call Rpt.ShowPreparedReport
End Sub
I get a Error 91 Object Required.
Thanks
Comments