Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Right edge of pdf cut off on exported Access 2010 report

Posted on 2011-10-11
5
Medium Priority
?
1,442 Views
Last Modified: 2012-05-12
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?  
0
Comment
Question by:IT Strongwell
  • 3
5 Comments
 
LVL 28

Expert Comment

by:burrcm
ID: 36954434
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
0
 

Author Comment

by:IT Strongwell
ID: 36957288
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?
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 36965995
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
0
 

Accepted Solution

by:
IT Strongwell earned 0 total points
ID: 36982712
In the process of preparing a bare Access database with a simple export routine, I decided to add more RAM to my PC.  I was trying to skimp by with only 512MB because this PCs sole purpose in life will be to automate reports.

Lesson learned....always feed your computer enough RAM.  All my weird issues disappeared when I upped the RAM from 512MB to 2GB.

Thanks for all your comments!
0
 

Author Closing Comment

by:IT Strongwell
ID: 37010592
This was fortunately just a case of improper RAM feeding..
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Instead of error trapping or hard-coding for non-updateable fields when using QODBC, let VBA automatically disable them when forms open. This way, users can view but not change the data. Part 1 explained how to use schema tables to do this. Part 2 h…
Windows Explorer lets you open cabinet (cab) files like any other folder. In VBA you can easily handle normal files and folders, but opening and indeed creating cabinet files takes a lot more - and that's you'll find here.
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question