pageset.printercontrol error 9 "Subscript out of range"

vb6 , access , de Norwich, United Kingdom
  • 12 years ago
    Hi, I am trying to print a report in landscape for which I am using the pageset.printer control to change the printer page orientation. The printer I am trying to print to is a network printer. When the code hits the obj.ChngOrientationLandscape the error occurs. If I change the printer preferences to landscape manually then I do not have an issue, can any one help !! code is: Dim obj As pageset.PrinterControl Set obj = New PrinterControl obj.ChngOrientationLandscape rptvMyReport.Refresh

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Weeks of coding can save you hours of planning.”