Customize Report Desginer
Hello,
I want to customize the Report Designer, and then save it into the database. If I want to use it , I only need to load it form the database. I use the following codes to saving and loading the report designer, but it doesn???t works well.
Loading code
byte[] bytes = _Report.ReportContent;
System.IO.MemoryStream ms = new System.IO.MemoryStream(bytes);
designerControl1.Report.Load(ms);
Saving code
System.IO.MemoryStream ms = new System.IO.MemoryStream();
designerControl1.Report.Save(ms);
byte[] bytes = ms.GetBuffer();
_Report.ReportContent = bytes;
What should I do? Thanks!
Best Regards,
Candy
I want to customize the Report Designer, and then save it into the database. If I want to use it , I only need to load it form the database. I use the following codes to saving and loading the report designer, but it doesn???t works well.
Loading code
byte[] bytes = _Report.ReportContent;
System.IO.MemoryStream ms = new System.IO.MemoryStream(bytes);
designerControl1.Report.Load(ms);
Saving code
System.IO.MemoryStream ms = new System.IO.MemoryStream();
designerControl1.Report.Save(ms);
byte[] bytes = ms.GetBuffer();
_Report.ReportContent = bytes;
What should I do? Thanks!
Best Regards,
Candy