Posted 16 June 2020, 11:09 am EST
442/5000
Hi,
I’m having so many problems using flexReport when printing reports on an Epson Tm80 printer, problems never had using the now obsolete c1report.
In practice, the report that I have to print has a different length. It can be 10 inches rather than 100 inches.
By setting the page size as follows:
report.PageSettings.Height = 12000 twips;
int pageHeight = (int)(report.PageSettings.Height.Convert(UnitTypeEnum.Inch) * 100);
int pageWidth = (int)(report.PageSettings.Width.Convert(UnitTypeEnum.Inch) * 100);
settings.DefaultPageSettings.PaperSize = new PaperSize(report.PageSettings.PaperSize.ToString(),
pageWidth, pageHeight);
report.Print(settings);
takes the default height specified in the windows settings.
How can I solve it?