how do I use the print preview dialog?

PrivateSub mnuPrintPreviewDialog_Click(ByVal senderAs System.Object,ByVal eAs System.EventArgs)Handles mnuPrintPreviewDialog.Click

If ppdPrintPreviewDialog.ShowDialog = Windows.Forms.DialogResult.OKThen

txtMatch.Text = ppdPrintPreviewDialog.Select

EndIf

End Sub

I have some trouble with this code (maybe the prefix for printpreviewdialog)

also I want to change the (color and font) of my text as I print. How can I do this without changing the initial source code from the print function code

PrivateSub pdPrint_PrintPage(ByVal senderAs System.Object,ByVal eAs System.Drawing.Printing.PrintPageEventArgs)Handles pdPrint.PrintPage

' Print the contents of the text box.

e.Graphics.DrawString(txtMatch.Text,New Font("Lucida Console", 12, _

FontStyle.Regular), Brushes.Fuchsia, 10, 10)

EndSub

example is I want to change the color of the text I am printing to black not Fuchsia, and I want the font to be Arial not "Lucida Console". How do I do this before I print my document, If I am using executable file.

[2716 byte] By [robertlamour] at [2007-12-23]