Unwanted form feed when changing paper size

Posted by: chrisg-uk on 4 August 2017, 2:57 pm EST

  • 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?


  • Replied 4 August 2017, 2:57 pm EST


    Is there a reason that you can not set the page size in the legacy system just as you did with the newer report in the ReportStart event?
  • Replied 4 August 2017, 2:57 pm EST

    Obviously getting the legacy system to set the correct size would be the best solution but is a old Unix application that we cannot modify.

    Additional: I have since tried using a printer escape sequence to reset the printer. This also throws a form feed.

    So, At the end of a report is there any way of resetting the page size to A4 without throwing a form feed?


  • Replied 4 August 2017, 2:57 pm EST


    If you send the escape character it shouldn't have to send a blank page through.  This may be an issue with the printer that you are using and how it handles escape characters.  Are you sending the escape character using the Interop DLL commands?

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels