Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

What is the best component for print preview

Posted on 1998-07-05
2
Medium Priority
?
274 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 150 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

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…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …

876 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