Solved

Error about QReport's Printer Setup function ?

Posted on 2000-04-17
4
802 Views
Last Modified: 2012-06-27
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

thanks
0
Comment
Question by:kelvinyu
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 1

Expert Comment

by:bakry99
ID: 2725589
hi
 i'm working Now in QReport,, but i haven't promblems please show me what did you do from beginnig
   bakry
0
 
LVL 2

Expert Comment

by:NetoMan
ID: 2727104
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:

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

    .
    .


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

   .
   .

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



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 :}
0
 

Accepted Solution

by:
SuperSy earned 50 total points
ID: 2727662
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).  
0
 

Author Comment

by:kelvinyu
ID: 2732925
SuperSy:

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

Thanks
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…

732 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question