Link to home
Start Free TrialLog in
Avatar of IT Strongwell
IT StrongwellFlag for United States of America

asked on

Right edge of pdf cut off on exported Access 2010 report

I have a report that I would like to have automatically exported from Access 2010 using the Windows 7 Enterprise 32bit Task Scheduler.  

I have a working report and a macro, that when run manually (within Access), the report is exported as a PDF just fine. ExportedManually.pdf.  

The problem starts when I try to run the macro via a Windows 7 Scheduled Task.  When exported as a rtf, the report exports fine automatically.  When exported as a pdf, the right edge of the pdf gets cut off. ExportedAutomatically.pdf

I have used both a macro (export with formatting) and a VB function (DoCmd.OutputTo _
acOutputReport, "Test", acFormatPDF, "C:\Temp\Test.pdf"), but both have the same issue when using a Scheduled Task.

Any ideas?  
Avatar of Chris B
Chris B
Flag of Australia image

What PDF printer do you use? Some have settings such as Emulate Printer. If this is the case, ensure that it is set to an installed printer and the page setup is OK.

Chris B
Avatar of IT Strongwell

ASKER

I am using the PDF capabilities of Access to export as a PDF.  It's included with Office 2010, I think it was a add on in previous versions of office.

I have used PDF writers such as CutePDF, maybe I can programmaticly print the reports to a file instead of using Access PDF functionality.  Any ideas how I would do this?
Avatar of Jeffrey Coachman
Not really sure...

Can you post a sample of the "Database" that generates these PDF's?

Sample database notes:
1. Back up your database(s).
2. Combine the front and back ends into one database file.
3. Remove any startup options, unless they are relevant to the issue.
4. Remove any records unless they are relevant to the issue.
5. Delete any objects that do not relate directly to the issue.
6. Remove any references to any "linked" files (files outside of the database, Images, OLE Files, ...etc)
7. Remove any references to any third party Active-x Controls (unless they are relevant to the issue)
8. Remove, obfuscate, encrypt, or otherwise disguise, any sensitive data.
9. Compile the code. (From the VBA code window, click: Debug-->Compile)
10. Run the compact/Repair utility.
11. Remove any Passwords and/or security.
12. If a form is involved in the issue, set the Modal and Popup properties to: No
    (Again, unless these properties are associated with the issue)
13. Post the explicit steps to replicate the issue.
14. Test the database before posting.

In other words, ...post a database that we can easily open and immediately see and/or troubleshoot the issue.
And if applicable, also include a clear graphical representation of the *Exact* results you are expecting, based on the sample data.

JeffCoachman
ASKER CERTIFIED SOLUTION
Avatar of IT Strongwell
IT Strongwell
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
This was fortunately just a case of improper RAM feeding..