Work Items


by VahidN
Nov 15, 2010
9:54 AM

Being evaluated

How to export reports to XPS/PNG/PDF format


by stefanomasseroli
May 4, 2010
8:31 AM

Being evaluated

Hi, the issue I want to patch is related to the class ReportDocument, in particular to its public methods CreateXpsDocuments.
I got some problems while creating a sequence of XPS documents by using the { public XpsDocument CreateXpsDocument(ReportData data) } method.
I noticed that, the package created in memory somehow it's been continuously recycled if you don't change his packageString...
In fact, the problem doesn't show up if you use the overloaded method: { public XpsDocument CreateXpsDocument(ReportData data, string fileName) }

For me, the solution was easy: always set the ReportDocument.ReportName, and use it in the faulting method:

MemoryStream ms = new MemoryStream();
Package pkg = Package.Open(ms, FileMode.Create, FileAccess.ReadWrite);
string pack = String.Format("pack://report_{0}.xps", this.ReportName); // this string should be different for each report generated !!
PackageStore.RemovePackage(new Uri(pack));
PackageStore.AddPackage(new Uri(pack), pkg);

I hope this will help you improving this reporting framework: I think you're doing a great job!
Thanks a lot

PS: I didn't post this as an issue in CodePlex, if you want I can publish it.

Stefano Masseroli


by bakotomas
Mar 12, 2010
11:46 AM

Being evaluated

some proposals for simplification of work with reports


View All
  • 1-3 of 3 Patches
    • Previous
    • 1
    • Next
    • Showing
    • All
    • Patches