Solved

The right Delphi component for printing

Posted on 2003-11-04
4
159 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
ID: 9685120
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
ID: 9685682
use this component.
http://www.delphi32.com/vcl/763/
0
 
LVL 3

Expert Comment

by:ThoseBug
ID: 9686188
wath kind the answer is this?...unbelieve this.
0
 
LVL 16

Author Comment

by:CodedK
ID: 9690365
Yes i dont believe this too. I press accept for the wrong person.
Sorry.
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

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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…

685 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