Results 1 to 7 of 7
  1. #1
    afshin is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Apr 2011
    Posts
    63

    export access report to word

    I want to insert access report in a word document, for this, I use this code:

    DoCmd.OutputTo acReport, "rptName", acFormatRTF, "C:ReportFileName.rtf"



    but, when that output word file is empty, don't have any chart that was in access report.

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    It is probably an issue with the Rich Text Format (.rtf). Although word can open RTF files, RTF does not have all of the format capabilities of, say, .docx. I can not find a way to format in Word .docx using OutputTo method. Also, you path needs a backslash - "C:\TestReportFileName

    Maybe you can use acFormatPDF and save as a pdf file to preserve formatting of charts, etc.

    Code:
    DoCmd.OutputTo acReport, "rptName", "PDFFormat(*.pdf)", "C:\TestReportFileName.pdf"
    'OR
    DoCmd.OutputTo acReport, "rptName", acFormatPDF, "C:\TestReportFileName.pdf"

  3. #3
    afshin is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Apr 2011
    Posts
    63
    i have many chart in access should be exported to my word document."pdf" file don't proper for this.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Charts will not export. Period. RTF doesn't handle. Why do you need a Word document? Why not just an Access report?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    afshin is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Apr 2011
    Posts
    63
    How can i insert 30 chart with different row source, in one report?

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    30 charts is a lot. Access report dimension limits are 22x22 inches. That is not big enough? Why 30 charts?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  7. #7
    afshin is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Apr 2011
    Posts
    63
    if all of 30 charts have same row source,access don't have any problem,but with different row source,word office is better.for this reason i want to export every chart from access to word document.
    30 charts or even more, are for every instrument that installed in one project (dam or tunnel),monitoring report should be contain all of instrument charts.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Export report directly to Word format (.doc)
    By rumenrs in forum Import/Export Data
    Replies: 2
    Last Post: 06-12-2013, 12:34 AM
  2. Export Report to Word Document Problems
    By mhmt in forum Import/Export Data
    Replies: 0
    Last Post: 02-07-2013, 11:41 PM
  3. Export report to Word
    By Lowell in forum Reports
    Replies: 1
    Last Post: 02-06-2013, 11:54 PM
  4. Export report to word document
    By jackyoung2012 in forum Reports
    Replies: 1
    Last Post: 03-16-2012, 11:16 AM
  5. Replies: 7
    Last Post: 08-31-2010, 12:15 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums