Solved

The right Delphi component for printing

Posted on 2003-11-04
4
160 Views
Last Modified: 2013-11-23
Anyone knows of a good component that can print a dbgrid (with preview).
0
Comment
Question by:CodedK
[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
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

Independent Software Vendors: 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

Title # Comments Views Activity
Help on project with Soap 10 70
How to renew a Delphi rad-studio licence? 5 95
DBCtrlGrid, Delphi, Scroll 7 35
Firemonkey BASS_Init into a thread 17 84
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

739 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