Eception when closing fr3 report viewer
Hi guys,
Any one is there to help me?
I have used following code to load fr3 report from VB6
Declaration:-
Private Query As FastReport.TfrxADOQuery
Private Param As FastReport.IfrxParamItem
Command code:-
Set frx = CreateObject("FastReport.TfrxReport")
frx.LoadReportFromFile (App.Path & "\Reports\EmpDelivery.fr3")
Set Query = frx.FindObject("AdoQuery1")
Set Param = Query.ParamByName("param1")
Param.Expression = txtDvNo.Text
frx.ShowReport
Set Query = Nothing
Set Param = Nothing
Set frx = Nothing
Report shows successfully but pressing Viewer close button it shows vb exception "Visual Basic has encountered a problem and needs to close. We are sorry for the inconvenience" and something something. I feel this error coming after viewing parameterized reports only. [img]style_emoticons/<#EMO_DIR#>/sad.gif" style="vertical-align:middle" emoid=":(" border="0" alt="sad.gif" /> Is there any solution? Totally i have stacked with this. Regards, Riyaz[/img]
Any one is there to help me?
I have used following code to load fr3 report from VB6
Declaration:-
Private Query As FastReport.TfrxADOQuery
Private Param As FastReport.IfrxParamItem
Command code:-
Set frx = CreateObject("FastReport.TfrxReport")
frx.LoadReportFromFile (App.Path & "\Reports\EmpDelivery.fr3")
Set Query = frx.FindObject("AdoQuery1")
Set Param = Query.ParamByName("param1")
Param.Expression = txtDvNo.Text
frx.ShowReport
Set Query = Nothing
Set Param = Nothing
Set frx = Nothing
Report shows successfully but pressing Viewer close button it shows vb exception "Visual Basic has encountered a problem and needs to close. We are sorry for the inconvenience" and something something. I feel this error coming after viewing parameterized reports only. [img]style_emoticons/<#EMO_DIR#>/sad.gif" style="vertical-align:middle" emoid=":(" border="0" alt="sad.gif" /> Is there any solution? Totally i have stacked with this. Regards, Riyaz[/img]
Comments
.