Solved

The right Delphi component for printing

Posted on 2003-11-04
4
157 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

810 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