水晶报表加载,急!!!!!!!!!!!!!!!
最近遇到一个问题:我在程序里加载报表有时能加,有时到"gCre.load"就直接结束,不在向下执行!!!!!!!!!!!!!!!!!!!
具体代码如下:
strSql = "select report_rptname,report_cname from " & gResourceDb & "report_define where report_no in (select report_no from " & gResourceDb & "report_relation where report_name='" & Trim(tnTreeNode.Text) & "' and parent_node='" & Trim(Microsoft.VisualBasic.Right(tnTreeNode.Tag, Len(tnTreeNode.Tag) - 1)) & "') "
lRs = lCn.Execute(strSql)
strRptName = gRptpath & Trim(lRs.Fields(1).Value) & ".rpt"
lRs.Close()
gCre.Load(strRptName)