Big problem

edited March 2004 in FastReport 2.xx VCL
We try to use FR (trial) before we buy it, but there was a big problem. FR is working fine when I design, preview or print a report from design time, but from run time it doesn?t work at all. I have error ?Access violation at address 00000000 ??, also I have this error when I try to close my application. This is only happening with our application, when creating new application everything is working fine. I use FreeReport at home and that?s why I recommended to switch from Quickreport to FastReport. Please help.

P.S. We use D7 and BDE.

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 10:11PM
    Hi
    make sure that any necessary fr add in objects are placed on the underlying delphi form if you are using them. ie exportfilters,frshape,checkbox, barcode, etc.
    Also make sure that a report is not set to select a non existent printer when loaded.
    regards ;)
  • edited 10:11PM
    Thank's for reply, but this is not a solution for my problem.
    For example i can load (frReport1.LoadFromFile('1.frf')) but when i try to show report (frReport1.ShowReport) i got "access violation at address...", or i can design report (frReport1.DesignReport), but when i try to show preview i have the same problem (this is case for runtime and form designetime).
  • edited 10:11PM
    That's may be a default printer problem. Try to set another printer by default.
  • edited 10:11PM
    I removed all printers but it is the same problem again. I don't think that preview is
    connected with printer. Problem is somethink else, but i can't find it.
    Thank you anyway.
  • edited 10:11PM
    Previewing requires a printer to be able to render the pages (used to calculate page size/resolution/etc) so you WILL HAVE TO have at least one printer installed and select it as the default.

    A few pointers that will help find your AV:
    1. make sure the frReport1 is not being FreeAndNil 'd somewhere in your app.
    2. debug your app (with show exceptions on) and see which unit is generating the AV...
  • dmidmi
    edited 10:11PM
    I have the same problem (acces violation in preview), but it appears randomly and I can't reproduce it on my computer (with DELPHI) and on my testing computer (without DELPHI).
    It appears for some of the users of my software and not appears for others.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.