protected bw_DoWork ( object sender, |
||
sender | object | The source of the event. |
e | The |
|
return | void |
protected void bw_DoWork( object sender, DoWorkEventArgs e )
{
ContributionReport contributionReport = new ContributionReport( ReportOptions.Current );
contributionReport.OnProgress += contributionReport_OnProgress;
var doc = contributionReport.RunReport();
if ( doc != null )
{
ShowProgress( 0, 0, "Rendering PDF..." );
byte[] pdfData = doc.Draw();
e.Result = pdfData;
}
else
{
e.Result = null;
}
}