先要建一个ReportService.aspx 代码如下: XDesigner.Report.ReportHtmlBuilder hb = this.Session["htmlbuilder"] as XDesigner.Report.ReportHtmlBuilder; if (hb == null) return; if (this.Request.QueryString["imageindex"] != null).Response.Output); 再建一个页面画大饼咯: //先增一个报表 DesignReportDocument doc = new DesignReportDocument(); doc.Title = "动态报表"; //Lable DesignReportLabel lbl = doc.CreateLabelElement(); lbl.Text = "动态报表演示"; lbl.TextColor = System.Drawing.Color.Yellow; lbl.Font = new Font("宋体", 20, System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic); lbl.Align = StringAlignment.Center; lbl.PrintDockStyle = PrintDockStyle.Top; lbl.Height = 120; lbl.Border.BackColor = Color.SkyBlue; doc.Add(lbl); //一个大饼 DesignReportPie pie = doc.CreatePieElement(); pie.Bounds = new Rectangle(169, 775, 1363, 954); pie.Thickness = 60; pie.BorderWidth = 1; pie.LeftBorder = false; pie.TopBorder = false; pie.RightBorder = false; pie.BottomBorder = false; doc.Add(pie); //增加列 for (int i = 1; i < 5; i++).Response.Output); 相关文章: 2022-01-28 2021-10-01 2021-05-18 2021-06-22 2022-12-23 2022-12-23 2022-01-16