Solved

What is the best component for print preview

Posted on 1998-07-05
2
247 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
Comment Utility
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
Comment Utility
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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

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…
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…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

762 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now