Printing Error Message

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

  • Posted 4 August 2017, 5:40 am EST

    Hi,
    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]<img src="/emoticons/emotion-9.gif" alt="Crying" /> is a nuisance only, cause the reports still print OK.

    Any suggestions to fix this one.

    Regards
    Dave Ward
  • Replied 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?
  • Replied 4 August 2017, 5:40 am EST

    Build 1170 is very old.  We have made numerous changes to our printing code since then.  Please download the newest build, 1275, available here:
    http://www.datadynamics.com/ShowForum.aspx?ForumID=37

    There is currently an issue with custom paper sizes with network printers that has been pinpointed by development, but not yet fixed.  So please let me know if you have any trouble with custom paper sizes in 1275.
  • Replied 4 August 2017, 5:40 am EST

    Hi Peter

    That was a very quick response - about 5 minutes.

    The version is

    2.0.0.1170

    Regards
    Dave Ward
  • Replied 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\
  • Replied 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
    www.pfpnet.com
    This site is my own hobby and not finished.
Need extra support?

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

Learn More

Forum Channels