Solved

Print DBGRID with all color and font and other thing

Posted on 2000-03-07
5
173 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
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…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

919 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

13 Experts available now in Live!

Get 1:1 Help Now