Solved

Print DBGRID with all color and font and other thing

Posted on 2000-03-07
5
172 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
Comment Utility
The simple way of printing this is

Printer.PaintPicture DBGrid1.CaptureImage, 100, 100

0
 
LVL 43

Expert Comment

by:TimCottee
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
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.
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

771 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

15 Experts available now in Live!

Get 1:1 Help Now