Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a Pivot Chart in MS-Access which i want to export as a PDF file. How can i set the resulting PDF's orientation from portrait to landscape ?

share|improve this question
add comment

2 Answers

up vote 0 down vote accepted

You could print it out using Cute PDF and set the print output to Landscape

share|improve this answer
    
I'm sure there's more than one workaround but I was hoping there's a simple setting in Access that controls this property. –  yurib Mar 4 '11 at 10:57
    
Set the printer and report page orientation to landscape and then export it to PDF... –  ta.speot.is Mar 4 '11 at 11:09
    
While printer control in Access is easier than it once was (since Access 2002), it's still not trivial, and it's kind of unpredictable. I would suggest for reliability you set up an actual report for the pivot chart, rather than try to print a form. –  David W. Fenton Mar 5 '11 at 21:11
add comment

When this code runs, all you see is the file save dialog. Cute PDF must be installed according to instructions on website.

Dim stDocName as string
Dim prn As Printer
Dim rpt As Report

stDocName = "your report object name"

Set prn = Application.Printers("CutePDF Writer")
prn.Orientation = acPRORLandscape

DoCmd.OpenReport stDocName, acViewPreview, , , acHidden

Set rpt = Reports(stDocName)
Set rpt.Printer = prn

DoCmd.PrintOut
DoCmd.Close acReport, stDocName
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.