Need help by printing a datareport in landscape-format

Need help by printing a datareport in landscape-format

Post by Christian Lang » Wed, 24 Feb 1999 04:00:00



Hello everyone,

I created a datareport, which is running correct. But if I change
the setting of the orientation of the printer to vbPRORLandscape,
the programm is still printing the documents in a portrait-format.

I tried it by changing the orientation with following code:

Dim X As Printer

For Each X In Printers
    If X.DeviceName="MY PRINTERNAME"
        Set Printer=X
        Printer.Orientation=vbPRORLandscape
    End If
Next

Does someone know how to change it correct?

Thank you,
Christian!