Printing from a PictureBox
Posted on 1999-07-08
I am attempting to print the contents of a PictureBox to a printer. I am running into many different problems.
First of all, in my PictureBox, I have different components, including a frame, lines, and circles (from using the Circle command). As you probably know, PrintForm does not work, and really messes with the appearance if you're printing to a black & white printer.
What I need is for everything to show up exactly as it appears on the print and, ideally, I'd like to see the form scaled to the dimensions of the paper. That way, the entire sheet of paper is filled, as opposed to PrintForm, which only uses about 50% of the paper.
I've been playing around with API functions like BitBlt and StretchBlt all day, but I've been unable to come up with an answer. Has anyone come up with code to do this?
Thanks in advance...