PrintInfo

Posted by: softcomlimited on 14 November 2017, 2:55 pm EST

    • Post Options:
    • Link

    Posted 14 November 2017, 2: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

  • Posted 20 November 2017, 9:10 pm EST

    Hi!

    Sorry for the delay in response.

    I tried to print the grid data with the above mentioned code. But, I could not get any such issue. When I run the project, Page Setup dialog box appears. Further, I select the Print option. As expected, it is printed in landscape orientation.

    Could you please share your sample along with the exact steps to reproduce the issue, so that I can assist you accordingly.

    Regards,

    Meenakshi

  • Posted 23 October 2023, 11:09 pm EST

    I attempted to print the matrix information with the previously mentioned code. Be that as it may, I was unable to get any such issue.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels