Jan 22, 2013 at 8:40 AM
Edited Jan 22, 2013 at 8:42 AM
I think you need to call Close on the PdfReportWriter.
Or better, use a "using" block:
using (var w = new PdfReportWriter(@"c:\data\report.pdf")) w.WriteReport(r, style);
I see the API needs to be cleaned up a bit here, to avoid confusion.
I think I will change to something like the static syntax used in System.IO.File (http://msdn.microsoft.com/en-us/library/system.io.file.writealltext.aspx)
PdfReportWriter.Export(r, style, @"c:\data\report.pdf");