• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 839
  • Last Modified:

Error about QReport's Printer Setup function ?

At Quick Report's Preview Form, once Printer Setup button has been click, a erro message will show while you click "Print" or "Close" button,
The message is "Access Violation at Address 00000009. Write of Address FCFCFD09",

I am use Delphe 4.0 and Qreport 3.3

1 Solution
 i'm working Now in QReport,, but i haven't promblems please show me what did you do from beginnig
I have experienced this kind of problems in the past. It´s a kind of weird because in time to time this happen in users PC's, but not in my development PC.  

In my case this happen too (some times)when I simple click the close button after preview without click print setup. I  have resolved this and "I dont know why" the print problems I think have been solved.

I hear that Qreport has a bad memory usage and every time a report is generated doesn´t free all the memory that use.

The main step here is not invoke the preview method in the same form where qreport control resides...

form with call report in other form:

    FReport : TCustomQuickRep;
    procedure SetReport(Value : TCustomQuickRep);
    { Public declarations }
    property Report : TCustomQuickRep read FReport write SetReport;


      // instanciate about dialog
      Report := FrmstatusShipment.QRepShipment;
      FrmstatusShipment.Enter;   //This procedure open querys in qreport form


procedure TFrmEstatusEmbarquesCaptura.SetReport(Value : TCustomQuickRep);
  FReport := Value;

Check Qreport examples in Delphi Demos for more information. You must check in QuSoft site for patches or updates on your Delphi version too.

Netoman :}
Are you using Preview, PreviewModal or PreviewModeless?

I personally think PreviewModal is safer than Preview (never used PreviewModeless so can't say anything about that).  
kelvinyuAuthor Commented:

I has use previewModal replace of Preview. After that, the problem has resolved,

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now