Change the page height dynamically from the code?
Posted: Sat Jul 11, 2015 2:11 pm
I am using Stimul Report components in my Windows Form (C#.net), to print invoice in my program. As a result the printed papers would have vary height due to different count of goods. I am using 80mm papers, not standard A4/Letter size. The goods are passed as a DataTable named dt in my code.
It still doesn't work and I get the .mrt file paper size. Any idea please?
Code: Select all
report.RegData(dt);
int pageNewHeight = ((dt.Rows.Count)*4) + 10;
report.Pages[0].Height = pageNewHeight;
report.Print(false, printSet);