Solved

Error about QReport's Printer Setup function ?

Posted on 2000-04-17
4
800 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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

Suggested Solutions

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

756 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