我用DataReport设计一报表,在打印输出时如果用Show方法让用户来控制打印,没有任何问题,但如果用PrintReport方法自行打印,在调试状态下没有问题,可是当编译成EXE文件之后,打印能正常进行,打印后在关闭MainForm时发生Visual C++ Error
Virtual Function Call.
然后非法操作
我的代码是:
...
DataReport1.PrintReport False
While DataReport1.AsyncCount > 0
DoEvents
Wend
Unload DataReport1
Virtual Function Call.
然后非法操作
我的代码是:
...
DataReport1.PrintReport False
While DataReport1.AsyncCount > 0
DoEvents
Wend
Unload DataReport1
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货