Click to See Complete Forum and Search --> : Print Preview


Ace Jones
April 12th, 2001, 05:51 PM
Hi Everyone,

I have cooked up some code to print everything that is on a form. The only problem though, is that I cannot see what I have done until I print the form. Is there any code out there that I can use to create a print preview? On the form I currently have some text boxes, a ListView control, labels and a few horizontal lines on the page. I would appreciate any help. Thanks.

CodeBlue
April 12th, 2001, 10:34 PM
There are a number of good print preview's out there (some with code, some without), assuming you are using ordinary printer functionality like CurrentX, CurrentY, Line, Print, etc. You may have to modify your code a bit to utilize these, since the object you print to is the print preview window rather than the printer itself. Here is one with code:
http://www.freevbcode.com/ShowCode.Asp?ID=1167
Also go to http://www.codehound.com/vb and do a search for "print preview". Quite a number of links there.