Solved

Print DBGRID with all color and font and other thing

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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…
Suggested Courses
Course of the Month9 days, 12 hours left to enroll

623 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