今天在使用水晶报表制作WINFORM报表时,出现一个奇怪的问题。

以下是代码片段:

代码
//source 为 DataTable 对象
rptClsMain.SetDataSource(source);
crptOrder.ReportSource 
= null;
crptOrder.RefreshReport();
crptOrder.ReportSource 
= rptClsMain;
rptClsMain.PrintToPrinter(
1true0100000);

 

 

如果crptOrder控件为隐藏状态,执行以上代码打印不出东西。

太奇怪了。

相关文章:

猜你喜欢
  • 2021-07-27
  • 2021-08-19
相关资源
相似解决方案