Solved

Print DBGRID with all color and font and other thing

Posted on 2000-03-07
5
177 Views
Last Modified: 2013-12-03
I want print all my grid... color line ebtween rows and cols all thing I have in
the grid.. I see the captureimage from the dbgrid but that don't work well or I don't know use it.. so someone can help?
0
Comment
Question by:Yard072999
  • 3
  • 2
5 Comments
 
LVL 43

Expert Comment

by:TimCottee
ID: 2590804
The simple way of printing this is

Printer.PaintPicture DBGrid1.CaptureImage, 100, 100

0
 
LVL 43

Expert Comment

by:TimCottee
ID: 2590807
By the way, you have posted this Q twice, you should delete the other one before anyone posts a comment or answer.
0
 

Author Comment

by:Yard072999
ID: 2590910
Thx for twice... with your idea I don't get a great
quality with that... you have something else?
0
 
LVL 43

Accepted Solution

by:
TimCottee earned 200 total points
ID: 2590923
There really isn't any other way that I know of, what happens is that the CaptureImage creates a Windows Metafile picture of the datagrid, this is then painted onto the printer object. Any degradation is due to the conversion of the image to metafile and then the resolution of printing. You could specify the printing size which may give the effect of tightening up the quality of the output by

Printer.PaintPicture DBGrid1.CaptureImage,100,100,1000,1000

Which will limit the printed size to 900x900.

Other than that I cannot really suggest anything which will directly improve the quality of the output.
0
 

Author Comment

by:Yard072999
ID: 2594996
I think is the best answer I can have :) if you have any otehr idea in anyway for print a grid please email me :)
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

680 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