portrait printing not wroking

The Amyuni PDF Converter is our Printer Driver that enables you to convert any documents to PDF format. If you have any questions about installing and using the Amyuni PDF Converter please post them here.
Post Reply
gurleen
Posts: 6
Joined: Wed Nov 03 2004

portrait printing not wroking

Post by gurleen »

Hi,
I have a PDF file that I want to print in landscape , but when I use print it gets printed in portrait. This is my code. What do I need to do so that the PDF gets printed in the format that it was saved in.

Dim PDF1 As New ACPDFCREACTIVEX.PDFCreactiveX
On Error Resume Next
With PDF1

.SetLicenseKey "Applianz Technologies, Inc.", "XYZAS"
.Open path, ""

' for print,the first argument is the printer name ( if none is provided it uses the default printer )
' the second argument is a boolean , if set to true it opens up the print dialog box
.ScaleToPrinter = acScaleBoth
If sendToDefault = True Then
.Print "", False
Else
.Print "", True
End If

End With

Set PDF1 = Nothing
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hi,

I guess this is the opposit of what you posted in the VB forum.

You are printing using the PDF Creator and not the PDF Converter so this should have been posted in the PDF Creator forum or the VB forum.

Are you generating your pdf document using the PDF Converter or using another PDF tool? If it is using the PDF Converter, which version are you using and what is the code you are using the generate the file?

Please reply to the post in the VB forum only so there will not be cross posting.

Thanks.
Post Reply