FastReport Studio 3.2 可以在VB中使用,请问一下如何在VB中调用FastReport?
FastReport Studio 3.2 安装后,里面用个VB6_Demo的例子,但是没看到这个例子引用了什么部件,例子代码如下:
Dim frx As TfrxReport
Private Sub Command1_Click()
frx.ShowReport
End Sub
Private Sub Design_Click()
Dim designer As TfrxDesigner
Set designer = CreateObject("FastReport.TfrxDesigner")
designer.Standalone = True
frx.DesignReport
Set designer = Nothing
End Sub
Private Sub Form_Load()
Set frx = CreateObject("FastReport.TfrxReport")
frx.EngineOptions.SilentMode = simMessageBoxes
frx.LoadReportFromFile ("Simple group.fr3")
End Sub
Private Sub Form_Unload(Cancel As Integer)
Set frx = Nothing
End Sub
运行是正常的,把代码复制到其它工程的Form中一运行就提示“用户类型未定义”
请问要在VB中使用FastReport,要怎么做?
谢谢!
只有14分了!各位帮忙。以后努力挣分来发了。