problems upgrading from AR1 to AR2

Posted by: joycekai on 4 August 2017, 2:40 pm EST

  • Posted 4 August 2017, 2:40 pm EST

    I have been having a few problems with AR1, so a suggested solution was to upgrade to AR2.  I used the upsizer to convert all my reports, closed and repopened the VB projects involved, and changed all references in the project code to ActiveReports to ActiveReports2.  (Example - ActiveReports.Image)  The report will now run without producing any run time errors, but still has some major problems.
    1.  It will not print.  If printing from a Print Preview, nothing happens.  If printing without a preview, a very non-specific message is shown.  The exact wording was "An error occurred during this".  After this, the tab control on the VB form being shown is seriously messed up.
    2.  No image controls can be shown.  There are 2 of these, both on subreports.  One is preloaded with an image.  The other is loaded from a database. 
    3.  One subreport that is on a subreport is not shown.  (Another one is shown.)
    4.  All of the fonts are the same.  I use several different font sizes on the report, and also bold and italic in some places.  All of the fonts are the same size and bold.
    5.  I use a different background color on some of my subreports to produce shading.  This is not happening.
  • Replied 4 August 2017, 2:40 pm EST

    I have not heard of any of these issues from upsizing a report from ActiveReports 1 to ActiveReports 2.  If you can attach your running project here or email it to and refer to this thread, we will look into these issues for you.

    Also, please be sure that you are running the newest build of ActiveReports 2, build 1275.
  • Replied 4 August 2017, 2:40 pm EST

    All my problems except one were resolved when I installed build 1275.  (I probably caused some of them myself by not closing my VB project during the installation.)
    I am still having problems with the logo on the report title randomly not showing up.  My project is too big and complicated to attach the whole thing.  I have the logo in a subreport of the title, so I am including the subreport.  I am also including a screen shot of when it works, and when it doesn't.  It seems to be totally random.
  • Replied 4 August 2017, 2:40 pm EST

    I can not determine from the information you have provided exactly what is causing this.  I do suggest moving this code to your ReportStart event though.  The detail format event is not a valid place to set your report's printwidth.  Also, your report appears to rely on environment variables.  It would probably be more reliable to create a public property (or properties) on the report and pass values in as appropriate.
  • Replied 4 August 2017, 2:40 pm EST

    I am coming back to this problem now, and am trying to think of different solutions that would be more stable.  In looking at the AR help file, I noticed that there is an example where one canvas is overlayed with another one.  It tells you very clearly how to overlay the canvas.  However, it does NOT tell you how to get the canvas for the overlay saved onto the hard drive.  I was wondering if you could give a little more complete example.

    By the way, this is my major complaint about your help file.  All of the code snippets are way too snippety.  In the topic on overlays you could have links to the topics on how to create a canvas with a bitmap on it, and how to save it onto the hard drive.  I know it seems pretty basic, but if you don't know how to do it and you can't find it in the help file, then you are stuck.
  • Replied 4 August 2017, 2:40 pm EST

    To save a canvas file:

    To load a canvas file:
Need extra support?

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

Learn More

Forum Channels