Posted 14 November 2017, 11:55 pm EST
I am writing some VB6 code. I cannot get PrintPreview or PrintData to respond to any of the settings in the pagesetup dialog, or to SettingOrientation.
When I run the code below, the SettingsOrientation is reflected in PageSetup, where I can see it has been set to Landscape (and where I can check that I an referring to the correct printer)
But the print is unaffected: I still get Portrait
If I click on the print dialog in the PrintPreview window, and try to set Lanscape there, I get a message saying that the content is bigger than the printable area of the page.
What am I doing wrong?
With Me.TDBGrid1.PrintInfo
.SettingsOrientation = 2
.PageSetup
.PrintPreview
End With