如题 新建区域报表如何加载?见一下示例代码:SectionReport report = new SectionReport();
StringWriter w = new StringWriter();
XmlTextWriter xmlWriter = new XmlTextWriter(w)
{
Formatting = Formatting.Indented,
Indentation = 1,
IndentChar = '\t'
};
report.SaveLayout(xmlWriter);
string rpt = w.ToString();
byte[] data = Encoding.UTF8.GetBytes(rpt);
MemoryStream reportStream= new MemoryStream(data);
reportStream.Position = 0;
reportDesigner.LoadReport(XmlReader.Create(reportStream), DesignerReportType.Section);
这样加载不了 请问该怎么用代码处理呢?
|
|