user is selecting from combobox either portrait or landscape for printing the page. I am writing following code to set it. it is not working. In preview it shows portrait in both cases.
can anyone please suggest?
thks
Code:
If (ComboBox1.SelectedIndex = 0) Then
PageSetupDialog1.PageSettings.Landscape = False
Else
PageSetupDialog1.PageSettings.Landscape = True
End If
thks
Comment