Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21847

Printing contents of a picture box

$
0
0
Good day!, im having a bit of a problem while printing controls that are inside a picture box. Im trying to print a Label, and an ocx, a barcode ocx to be exact. I've tried different methods already. One of them is trying to capture an image of the picture box but the result is unacceptable because the quality of the print is kinda rough. The other method is this one which was given to be by one of my friends
Code:

Printer.PaintPicture Picture1.Image, 0, 0
Printer.EndDoc

the problem is its not producing any print out.
my other workaround here is a pretty long method, its acceptable, but I know there's a way to it with less lines of code.

Thanks a lot for any suggestions! :)

Viewing all articles
Browse latest Browse all 21847

Trending Articles