…
// This exampleassumes that the output format is JPG.
// ReportImage.Pagesreturns an array of byte arrays. Each byte array is one page.
ReportImageimageReport = report as ReportImage;
if (imageReport !=null) {
for (int fileNumber = 0; fileNumber
{
string filename = @"C:\imageOutput_"+ fileNumber + “.jpg”;
File.WriteAllBytes(filename,imageReport.Pages[fileNumber]);
Console.Out.WriteLine("HTML pagewritten to " + filename);
}
}
…