水晶报表4.6打印时候报错20535
在vb程序中调用该水晶报表(4.6版本),在执行到最后一步的时候出错,错误如下:
运行时错误'20535':
Unable to connect :incorrect session parameters
代码如下:
.Report1.Destination = crptToWindow
.Report1.DataFiles(0) = App.Path & "\Database\Report.mdb"
.Report1.ReportFileName = App.Path & "\Report\XxclReport.rpt"
.Report1.Action = 1'--备注:执行到此步时候出错