I am trying to print a pdf using the printdocument and printdialog by passing a file name using the opendialog. This is my code
im c1 As OpenFileDialog = New OpenFileDialog
c1.InitialDirectory = "c:\"
c1.Filter = "PDF Files (*.pdf)|*.pdf"
If (c1.ShowDialog() = DialogResult.OK) Then
lblFileName.Text = c1.FileName
file = lblFileName.Text
PrintDocument1.DocumentName = file
Anytime I try this it does not print anything.
Can anyone help please