Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Access Violation after print preview

edited March 2002 in General
To whom it may concern

RB 6.03, TeeChart 5.02, DBISAM 3.04, Delphi 5, Windows 2000

After previewing a report that has a DBChart in a sub-report I am getting
AVs on exiting the preview.

If I take out the DBChart, the AVs do not occur. If I put it back in again,
the AVs return.

Is there an issue with RB 6.03 and TeeChart 5.02?

Thank you

--
Michael Lekias
Managing Director
Professional Software Design
www.psdesign.com.au
Ph: +61 8 9444 1278
Fx: +61 8 9443 9878

Comments

  • edited March 2002
    I have some similar symptoms using ReportBuilder from version 4 or 5.
    I have version 6.03, and TeeChart 4.01 with Delphi 4.

    I get an access violation when displaying the standard preview (using
    dtScreen) :
    I click on the printer button, then quickly click on the close button, and
    voil? : AV.
    It does not happen when I wait for the printer to begin its print job, then
    clicking on the close button (ie waiting approx. 1 sec.).

    And another problem too :
    I have troubles printing charts with several brands of printers : HP,
    Panasonic, etc...
    The charts are not always well printed : lines are missing, no chart at all,
    etc...
    I got this problem with QuickReport too, and it seems to be a driver
    problem, but how can I tell my customers that it is so ?
    Is there any workaround for those cases ?

    Aurelien Dellieux (Corwin: http://www.corwin.fr)
  • edited March 2002
    Not sure of why it AV's on exiting, we have had no problems with TeeChart
    5.02 like this. I have been running Teechart reports this morning without
    incident. Can you send us an example chart report which blows up on exiting
    the preview? support@digital-metaphors.com

    We have seen many problems with lines and printer drivers. The one thing
    you can do is toggle the PrintMethod of the chart in the report from
    Metafile to Bitmap, depending on the printer that is going to be used. The
    appearance will lose some of its quality when you do this.


    Cheers,

    Jim Bennett
    Digital Metaphors

  • edited March 2002
    Hi,

    First, thank you for your quick answer,
    I've made a small exe with the same conditions (teechart, and insertion of
    values at run time into TLineSeries, also created at run time).
    But I've not been able to reproduce the AV again...
    I think I've found the problem I get in my bigger project.
    I destroy the series too soon, as the preview screen is non modal in this
    last case.
    I do "Print" with dtScreen, the series are destroyed, but still visible on
    screen, and when I print : AV, quite normal, isn't it ?

    But I remember some months ago, I got AV with this preview screen, modal,
    when clicking Close after printing, but I really am not able to reproduce it
    now...
    I'll send you a test program as soon as I get the AV again...

    Again, thank you for your help, and sorry for the annoyance...

    Aur?lien Dellieux (Corwin: http://www.corwin.fr)
This discussion has been closed.