Solved

What is the best component for print preview

Posted on 1998-07-05
2
251 Views
Last Modified: 2013-11-22
I am looking for a good component that will allow me to print preview from delphi components such as RichEdit.
0
Comment
Question by:sharons
2 Comments
 
LVL 10

Accepted Solution

by:
Jacco earned 50 total points
ID: 1357122
We use the QuickReport TQRPreview for that. QuickReport comes with Delphi 2,3 and 4.

You can also use it without having a real report to print.

Just make a report with a TQRRichEdit on it. Copy your text to this TRichEdit. (QRRichEdit.Lines := RichEdit.Lines)

And make a form with a TQRPreview component on it (frmPreview).

Use the OnPreview event of the TQReport to create your preview.


  frmPreview := TfrmPreview.Create(Self);
  with frmPreview do begin
    QRPreview1.Printer := nil;
    QRPreview1.Printer := TQRPrinter(Sender);
    ShowModal; // or if you have an MDI child just don't
  end;

There are several other print preview components to be found on

www.delphi-exchange.com

or

DSP
0
 

Author Comment

by:sharons
ID: 1357123
Thank you.  I will try this. I would still like to try a good preview component that would be more specific to my task.  It seems that using Quick Report would add a lot of overhead.  Am I right ?  But also all the components I saw on Delphi Echange were written in 1995.  Is that because everybody is using Quick report now and there is no need for other components ?

0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

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…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

803 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