473,394 Members | 1,916 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

how to export access 2010 report to ms word

I have created joining letter in access 2010,as it is a letter it is not in column and row format.
When i export report to word it does not shows report instead it shows column headings and data below it.
what will be the code to export entire report in ms word as it is in access on button click.
thank you
Nov 11 '13 #1

✓ answered by topher23

When you export from Access, you are always exporting data. This is why you are getting data (columns and rows) when you try to export from your report. What you want isn't an export of data but an output of your object with the selected data. Based on the little you've provided, I'd suggest creating an RTF output using:
Expand|Select|Wrap|Line Numbers
  1. DoCmd.OutputTo acOutputReport, Me.Name, acFormatRTF, "Your\Desired\Filepath.rtf"
If that doesn't look right, try doing a PDF output:
Expand|Select|Wrap|Line Numbers
  1. DoCmd.OutputTo acOutputReport, Me.Name, acFormatPDF, "Your\Desired\Filepath.pdf"
Then use a third-party converter to turn your PDF into a Word document.

3 14633
topher23
234 Expert 100+
When you export from Access, you are always exporting data. This is why you are getting data (columns and rows) when you try to export from your report. What you want isn't an export of data but an output of your object with the selected data. Based on the little you've provided, I'd suggest creating an RTF output using:
Expand|Select|Wrap|Line Numbers
  1. DoCmd.OutputTo acOutputReport, Me.Name, acFormatRTF, "Your\Desired\Filepath.rtf"
If that doesn't look right, try doing a PDF output:
Expand|Select|Wrap|Line Numbers
  1. DoCmd.OutputTo acOutputReport, Me.Name, acFormatPDF, "Your\Desired\Filepath.pdf"
Then use a third-party converter to turn your PDF into a Word document.
Nov 11 '13 #2
thanks topher it works well
Nov 12 '13 #3
zmbd
5,501 Expert Mod 4TB
Yes, this is a known hiccup in the export report to word method for ACC2010. Drives me nuts! You have this great report with all the lines and grouping etc... and then Microsoft really messed things up by not exporting the pretty report like they used to do...

Both Topher23 suggestions are very workable. The PDF will give you the report as you have it in Access where as the RichText may still require some serious tweeking.

If you need somthing a little different then you have the MailMerge feature in Word. This can use the information within Access.
Here is a basic example from Microsoft - Use a table or query as a mail-merge data source

Then there is Application Automation... it is not for the faint of heart and I wouldn't consider it unless Topher23's suggestions or the Mailmerge fail to meet your needs.
Nov 14 '13 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Mandar | last post by:
I am trying to export crystal report to pdf. but i am getting folloing error: "Error in File C:\DOCUME~1\MKM-BA~1\ASPNET\LOCALS~1\Temp\temp_0c6b2c59-df8a-4b26-a570-a2189ee212ac.rpt: Access to report...
1
by: Bob Alston | last post by:
Anyt one know a way to correctly export an Access 2003 report to Excel? I can use Tools - Office Links ..... just fine with a query or table. But when I try a report it just doesn't work. right...
0
by: Tom East | last post by:
I am a special ed teacher. I am using Access to track data. My ultimate goal is to provide parents with a scatter chart with a trend line based on two fields from a trial results database. The fields...
3
AR Ratheesh
by: AR Ratheesh | last post by:
Hi, I have Access 2010 and When i'm trying to Export Text files to System folder ("C:\Windows\abc.asc"), in Windows 7 ultimate, couldn't export. But Previously i successfully exported to...
3
by: minnichj | last post by:
Is there a way to force an Access 2010 report to resize so all columns print out on one page (I'm looking for something similar to the "Fit to:" Page setup feature in Excel)? VB Code preferred.
4
beacon
by: beacon | last post by:
Hi everybody, My title may not exactly describe my issue, so please forgive my lack of creativity today. I've got a database that was created in Access 2003 that I've opened in Access 2010. I...
7
by: Sophia Olivas | last post by:
I am trying very hard to make this work - i found a question posed a few years ago to do the same thing and tried the solution but it doesn't work... I have a standardized form that I am trying to...
1
by: newtoaccessvba | last post by:
I am not too familiar with VBA in Access, but I would like if someone could show me how to ignore a caption and it's field in an Access 2010 Report and an Outlook Email when the field value is it is...
3
by: jyellis | last post by:
My customer wants to see the records updated in the last 30 days to change color on his report. There is no update date field in report. Can this be done?
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.