Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - Print Landscape
  FAQ FAQ  Forum Search   Register Register  Login Login

Print Landscape

 Post Reply Post Reply
Author
Message
BASSIES View Drop Down
Beginner
Beginner


Joined: 15 Aug 13
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote BASSIES Quote  Post ReplyReply Direct Link To This Post Topic: Print Landscape
    Posted: 15 Aug 13 at 12:59PM
Hello,

With this code i can print a pdf , but it is in landscape.

Now is print a half document , what do i change in the code to print landscape?

 This function prints a document

        ' Setup general parameters
        Dim fileName As String = "C:\VTS\Hello.pdf"

        ' Load the document that you want to print into memory
        Dim docID As Integer = QP.LoadFromFile(fileName, "")

        ' Set the paramters for the PrintDocument function
        Dim PrinterName As String = QP.GetDefaultPrinterName()
        Dim StartPage As Integer = 1
        ' Set first page number
        Dim EndPage As Integer = QP.PageCount()
        ' Set last page number
        ' Set the paramters for the PrintOptions function
        Dim PageScaling As Integer = 0
        Dim AutoRotateCenter As Integer = 0
        Dim Title As String = fileName

        ' Assign the options for printing to an int variable
        Dim Options As Integer = QP.PrintOptions(PageScaling, AutoRotateCenter, Title)

        ' Print the document with the required paramters and options specified
        QP.PrintDocument(PrinterName, StartPage, EndPage, Options)

        ' Remove document from memory
        QP.RemoveDocument(docID)
Back to Top
BASSIES View Drop Down
Beginner
Beginner


Joined: 15 Aug 13
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote BASSIES Quote  Post ReplyReply Direct Link To This Post Posted: 15 Aug 13 at 1:07PM
Found it 

Dim AutoRotateCenter As Integer = 1
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store