G
Guest
I am having problems using the Printer Dialog to set PrinterSettings,
specifically the landscape property of the DefaultPageSettings. Here's the
code:
<code>
Private Sub GetPrinter(ByRef PrinterSettings as PrinterSettings, Landscape
as Boolean)
Dim pdiag As New PrintDialog
Dim pset As New PrinterSettings
pset.DefaultPageSettings.Landscape = Landscape
pdiag.PrinterSettings = pset
If pdiag.ShowDialog() = DialogResult.OK Then
PrinterSettings = pdiag.PrinterSettings
End If
End Sub
</code>
Regardless of what printer and/or options are selected in the dialog, they
aren't in pdiag.PrinterSettings. Am I doing something wrong? Shouldn't the
options selected be in pdiag.PrinterSettings?
Thanks
specifically the landscape property of the DefaultPageSettings. Here's the
code:
<code>
Private Sub GetPrinter(ByRef PrinterSettings as PrinterSettings, Landscape
as Boolean)
Dim pdiag As New PrintDialog
Dim pset As New PrinterSettings
pset.DefaultPageSettings.Landscape = Landscape
pdiag.PrinterSettings = pset
If pdiag.ShowDialog() = DialogResult.OK Then
PrinterSettings = pdiag.PrinterSettings
End If
End Sub
</code>
Regardless of what printer and/or options are selected in the dialog, they
aren't in pdiag.PrinterSettings. Am I doing something wrong? Shouldn't the
options selected be in pdiag.PrinterSettings?
Thanks