Posted 4 August 2017, 2:57 pm EST
We are printing reports to a dot matrix printer using fanfold paper.
In ReportStart I enumerate the page sizes till I find the correct size and set it using the PaperSize property.
This works fine and prints mutiple pages with the correct paper length.
We have another legacy system which prints to the printer but does not set the paper size and is assuming A4.
Beacuse I have set the correct paper size this now longer works.
At the end of my report I need to reset the printer paper size to A4.
I have added some code into ReportEnd to reset the paper size to A4. This is now causing an unwanted form feed and a blank page to be printed.
Can you tell me how to reset the paper size to A4 (the default setting) without causing a form feed after my report has printed?