?
Solved

What is the best component for print preview

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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

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…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

719 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