Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   Index   Templates   Seminars   TechHelp   Forums   Help   Contact   Join   Order   Logon  
 
Home > Forums > Access
Back to Access Forum    Comments List
Upload Images   Link   Email  
Export to Word with Formating
Sami Shamma 
             
12 months ago
Greetings friends,

I have a nicely formatted report with boxes, etc. Is there a way to export this report to Word and maintain formatting?
When I export it now, I lose most of the formatting.
Adam Schwanz 
            
12 months ago
Challenge Accepted.
Adam Schwanz 
            
12 months ago
Looks like ole objects and a few other things don't get exported into word so you'd have to use a PDF for those. What formatting are you trying to keep?
Alex Hedley 
            
12 months ago
Why are you wanting it in Word?
Does it need to be further filled in?
Sami Shamma OP 
             
12 months ago
My director needs the information generated from my report added to a confidential narrative he adds.
Cutting and pasting from pdf looses the formatting as well.

Can I expect my report as an image perhaps?
Adam Schwanz 
            
12 months ago
If nothing else you just snip tool your report and paste it into word :P

Is this all just text?
Sami Shamma OP 
             
12 months ago

Sami Shamma OP 
             
12 months ago
Just table of figures
Sami Shamma OP 
             
12 months ago
Is there a way to automate the Snip Tool from within Access?
Adam Schwanz 
            
12 months ago
Probably not without using sendkeys which I don't know if I'd do.

What happens when you use the built-in export to word? Takes the boxes out?
Adam Schwanz 
            
12 months ago
If you decide to go down the sendkeys path, it's probably easier to full screen the report and sendkeys print screen instead of trying to snip
Sami Shamma OP 
             
12 months ago
Yes, the boxes disappear.

I wonder if I can create the Word document and then Mail Merge my data automatically, is that possible?
Kevin Yip 
     
12 months ago
One way is export both your Access report and Word doc to PDFs and combine them into one PDF to show your boss.  You can combine PDFs with a third-party tool like PDFtk, which has a command-line tool that Access VBA can use to automate the task.
Sami Shamma OP 
             
12 months ago
Kevin
Manually I can do this without any problems. I am trying to completely automate this. So my boss clicks on a button and out comes the Word document.
Kevin Yip 
     
12 months ago
You can definitely automate all 3 steps:

- Export Access report to PDF with DoCmd.OutputTo.
- Export Word doc to PDF with Document.ExportAsFixedFormat: https://learn.microsoft.com/en-us/office/vba/api/word.document.exportasfixedformat
- Combine two PDFs with PDFtk command line, with Shell() command in VBA
Sami Shamma OP 
             
12 months ago
Thank you Kevin
I will give it a try later in the week when I go back to work.
Alex Hedley 
            
12 months ago
Sami Shamma OP 
             
12 months ago
Alex thank you
I will also try this. I shall report back.
Juan C Rivera 
           
12 months ago
Sami have to concidered merge?  have the information in Access and have Word extract it?
Sami Shamma OP 
             
12 months ago
Hi Juan.
Yes I actually said that above. I looked at my report and it does not have too many fields.
On Friday and the weekend, I am going to try the suggestion I got from my friends here.
Juan C Rivera 
           
12 months ago
Apologies, I've attempted something similar using Access and Word myself. I tried exporting a report with a header and footer, along with a styled heading, to make a master document with a table of contents (no luck). Perhaps someday I'll be skilled enough to accomplish tasks like this. LOL
Richard Rost 
          
12 months ago
You could do most of the work in the Word document as far as the formatting in the boxes and stuff goes, and then just pull in your data using either actual mail merge or just custom codes that you make yourself. You can open the document from VBA and then fill in the blanks. That's kind of what I do with the handbook generator. I've got a blank Access handbook Word document with some custom fields in it like {TITLE} and {TOC}, and then I have Access open up that document and fill in all the information so you'll keep all your formatting. I'm happy to share the code with you if you'd like it.
Sami Shamma OP 
             
12 months ago
Yes please Richard. I would love that.
I am also thinking this will make a great TechHelp video.

Thank you guys you all have been very helpful.
Sami Shamma OP 
             
12 months ago
The Big Boss came up with the perfect and simplest solution.

Open the PDF file (created from Access with full formatting) from inside Word.

As Rick would say: Boom!

Word document that looks exactly like the original report: formatting, lines and all.

Thank you @Rick
Richard Rost 
          
12 months ago
De nada. Video coming up... :)

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Forum.
 

 
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2025 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 4/23/2025 10:31:20 PM. PLT: 1s