Solved

The right Delphi component for printing

Posted on 2003-11-04
4
155 Views
Last Modified: 2013-11-23
Anyone knows of a good component that can print a dbgrid (with preview).
0
Comment
Question by:CodedK
  • 2
4 Comments
 
LVL 5

Accepted Solution

by:
DeerBear earned 20 total points
Comment Utility
Hi,

Most printing suites are about reports, so you should either transfer the grids' content to a
report or build yourself a component that does what you ask.

I don't have too much time now, but it should look like this:

Type

    TPrintComponent = class( TComponent )
    published
       
         property Source : TComponent;
         property PreviewPane : TPaintBox;
   end;


Then you'd use the Windows APIs to get the DC of the component you want and then
would draw it on the PreviewPane and then print it out.

That's basically how you'll make it.

HTH,

Andrew
0
 
LVL 3

Expert Comment

by:ThoseBug
Comment Utility
use this component.
http://www.delphi32.com/vcl/763/
0
 
LVL 3

Expert Comment

by:ThoseBug
Comment Utility
wath kind the answer is this?...unbelieve this.
0
 
LVL 16

Author Comment

by:CodedK
Comment Utility
Yes i dont believe this too. I press accept for the wrong person.
Sorry.
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

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…
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

772 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

10 Experts available now in Live!

Get 1:1 Help Now