
printing graphs in VB 5.0 CCE
You should graph in a PictureBox. And the use the PaintPicture method of
the Printer object in a code like this:
Dim pw as Integer
Dim ph as Integer
pw=Picture1.Width
ph=Picture1.Height
Printer.PaintPicture Picture1, 0, 0, pw, ph, 0, 0, pw, ph, &hCC0020
I didn't tried it but anyway, it should work..
If it doesn't work, try changing the autoredraw property of Picture1
Hope this helps, and hope this works...
===================================
Pedro J. Rusjan
http://www.mug.org.ar/socios/pedro.rusjan
===================================
Quote:
> Hi, I am having a problem printing from VB
> I have a program that plots a graph to the screen according to certain X
> and Y values. How do I send this graph to the printer. I would prefer
if
> I didn't have to print the entire form (i.e.: title bar). Any help would
> be appreciated..
> Thanks in advance
> --
> Ryan Haggarty
> TIP #1990