title: Access 2007 OutputTo PDF Different from Printed Output
body: <p>Using Access 2007 SP3, I have a report.  When printed to a printer, and in the print preview, the report looks fine.  Well within margins, proper output, no extra pages...everything is fine.</p>
  
  <p>When outputting this same report to a PDF, the report appears zoomed, and the content is clipped.  No extra pages are printed as if I've gone beyond the margins.  Here is the code I'm using:</p>
  
  <pre><code>DoCmd.OpenReport rptName, acViewPreview
  DoCmd.OutputTo acOutputReport, "", acFormatPDF, PDFFileName, False
  DoCmd.Close acReport, rptName
  </code></pre>
  
  <p>The report is opened in preview mode first so the page events fire to show/hide objects based on fields in the recordset that feeds the report.</p>
  
  <p>I've tried both screen quality and print quality parameters in the OutputTo call, with the same results.  Also, even if I call OutputTo all on one line and the events don't fire, the report is still zoomed/clipped, it just has all the extra objects not hidden.</p>
  
  <p>I've tried this on two different machines, one running Windows 7 and one running Windows Server 2008.</p>
  
  <p>Even when setting a break point on the OutputTo line, the preview looks just fine...it's the resulting PDF file that doesn't look right.</p>