Solved

What is the best component for print preview

Posted on 1998-07-05
2
253 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
[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
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

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…
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…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

734 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