> You can't send a click event to an open PrintDialog.
>
[quoted text clipped - 16 lines]
> >
> > Thanks much!
What is the source of the item you are printing? Crystal Report, Word Doc,
Text File...?
Give me some more specifics about what exactly you are trying to
automatically print, and I'll see what I can do to help.

Signature
"Quae narravi, nullo modo negabo."
> Sure - I'd love to hear some details!
>
[quoted text clipped - 21 lines]
> > >
> > > Thanks much!
mafandon - 30 Aug 2006 23:08 GMT
It's none of those.
I'm using the reportviewer control in VB 2005 with local report /
reportembeddedresource of a .rdlc extension.
Here's a little bit of the code for when the reportviewer completes loading:
Private Sub ReportViewer1_RenderingComplete(ByVal sender As Object,
ByVal e As Microsoft.Reporting.WinForms.RenderingCompleteEventArgs) Handles
ReportViewer1.RenderingComplete
Try
ReportViewer1.SetDisplayMode(Microsoft.Reporting.WinForms.DisplayMode.PrintLayout)
ReportViewer1.PrintDialog()
If Windows.Forms.DialogResult.Cancel Then
frmInvoices.Show()
Me.Close()
End If
Catch ex As Exception
End Try
End Sub
Thanks!
> What is the source of the item you are printing? Crystal Report, Word Doc,
> Text File...?
[quoted text clipped - 27 lines]
> > > >
> > > > Thanks much!