Printing Error Message

Posted by: dave-ward on 4 August 2017, 5:40 am EST

  • Posted 4 August 2017, 5:40 am EST


    Recently I migrated a large project to a WinXP PC and recompiled it into a new exe  with a few minor adjustments to the graphics on forms and no adjustments to dsr files.

    When running the project and printing a report (AR2) in the development environment there are no problems. (The project has 160 dsr files).

    But when running the new exe file in it’s own thread and printing a report, just prior to showing the print dialog I’m getting an error message with the app.title on the title bar and the message “Invalid Procedure call or arguement.”.

    The error never showed previously and can’t be coming from my code. I think it’s coming from the ARViewer.

    The error message appears at every print job[:S]Crying is a nuisance only, cause the reports still print OK.

    Any suggestions to fix this one.


    Dave Ward

  • Posted 4 August 2017, 5:40 am EST

    I have not heard of this specific behavior occurring before.  What build of ActiveReports are you currently using? 

    Also, do any of your reports use custom paper sizes?  And are your printers using network or local connections?

  • Posted 4 August 2017, 5:40 am EST

    Hi Peter

    Using AR 2.0 Std Ed.

    The reports are split between standard A4 paper size, and custom sizes for label printing.

    No network connections, all are created via local connections.

    The app has been working fine for the last 2-3 years and has been upgraded over that time to vs. 4.1.0.

    Two printers are used, a default printer on LPT1 and a thermal transfer printer on COM1.

    Code in the reports automatically sends any specific report to the correct printer.

    Samples of the labels can be seen at

    This site is my own hobby and not finished.

  • Posted 4 August 2017, 5:40 am EST

    I think your site looks nice.  Well on its way.

    I still do need to know your build number of ActiveReports.  It can be found by right clicking on the actrpt2.dll, selecting properties, and then the version tab.  This file is located by default at:

    C:\Program Files\Common Files\Data Dynamics\ActiveReports Std<br>

  • Posted 4 August 2017, 5:40 am EST

    Hi Peter

    That was a very quick response - about 5 minutes.

    The version is


    Dave Ward

Need extra support?

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

Learn More

Forum Channels