protected void Prepare(IPrintableDocument document)
{
if (document.PrintType == PrinterType.RDL)
{
Report report = GetReportFromFile(document.GetReportInfo());
report.RunGetData(document.GetReportInfo().Parameters);
reportPages.Add(report.BuildPages());
}
}