您好:C1Report可以直接加载模板的。您是尝试这样的方式,希望能帮到您。- <p> // load the reports
- c1Report1.Load("Report1.xml", "ReportName");
- this.c1Report1.Render();
- // the margins are set to zero to compensate for the margins already present in the reports
- c1PrintDocument1.PageLayout.PageSettings.LeftMargin = "0.0in";
- int i;
- int count=c1Report1.GetPageCount() ;
- Pages = new System.Drawing.Imaging.Metafile[count];
- </p>
复制代码 |