- private void button2_Click(object sender, EventArgs e)
- {
- DataDynamics.ActiveReports.ActiveReport rpt = new DataDynamics.ActiveReports.ActiveReport();
- rpt.Document.Load(@"C:\Report1.RDF");
- //rpt.run(); <------ 报错
- rpt.Document.Print(false, true, true);
- }
复制代码
把rpt.run()注视掉后,实现了调用模板并打印,但听楼主说模板包含变量的话,赋值无效
怎么办? |