Posted 28 September 2017, 1:14 pm EST
[activereports_archive]
Dear AR lovers,
I got myself stuck with the following problem:
At the moment of report creation ActiveReports throws:
Printer does not support A4 papersize. Please use PaperKind.Custom in your PageSettings or specify a papersize supported by the current printer
this is the code:
//assume we have a table with data:
DataTable table = GetData();
…
DataDynamics.ActiveReports.ActiveReport rpt = new DataDynamics.ActiveReports.ActiveReport();
strm = new System.IO.MemoryStream(report.TemplateData);
strm.Position = 0;
rpt.LoadLayout(strm);
strm.Close();
rpt.DataSource = table;
rpt.Run();//blocked mode
…
Does anyone know why AR is complaining about a printer at this point?
Is there any way to circumvent this behavior?
Choosing another default printer on the machine in question doesn’t solve the problem.
Choosing another paper size (eg Letter) doesn’t solve the problem.
I am obsolutely sure that the printers selected were capable of printing at the sizes specified.
Thanks in advance,
Jeroen