By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,279 Members | 1,244 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,279 IT Pros & Developers. It's quick & easy.

VB.NET : Show print dialog before printing Word object

P: n/a

Hi all,

I would like to know how can I do to display print dialog so that the
user can choose printer when printing word document object.

Basically, I download rtf document on the HD and open it with VB.NET
then use printout method to print it.

Now, what I want to do is to make the print dialog available.

Thanks in advance

Feb 16 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
This is an example of both the OpenFileDialog() and the PrintDialog,
You first choose a file, and then choose the printer.
Dim ofd As New OpenFileDialog()
If ofd.ShowDialog(Me) Then
' Allow the user to select a printer.
Dim pd As New PrintDialog()
pd.PrinterSettings = New PrinterSettings()
If (pd.ShowDialog() = Forms.DialogResult.OK) Then
' Print the file to the printer.
End If
End If

Feb 16 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.