Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Print DBGRID with all color and font and other thing

Posted on 2000-03-07
5
Medium Priority
?
180 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
[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
  • 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 400 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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

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…
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 utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…
Suggested Courses

721 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