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!
Print Landscape |
Post Reply |
Author | |
BASSIES
Beginner Joined: 15 Aug 13 Status: Offline Points: 11 |
Post Options
Thanks(0)
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) |
|
BASSIES
Beginner Joined: 15 Aug 13 Status: Offline Points: 11 |
Post Options
Thanks(0)
|
Found it
Dim AutoRotateCenter As Integer = 1
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store