473,499 Members | 1,724 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Exporting report to RTF

I am trying to export a report straight to RTF. At the moment when I click
on export an output to box appears asking which format (HTML, Excel, MS DOS,
RTF, Snapshot). I want to skip this and save to RTF automatically. I have
searched and can't find a solution. My code looks like this:

Dim stDocName As String

stDocName = "rptCosts"
DoCmd.OutputTo acReport, stDocName

Thanks
Will
Nov 13 '05 #1
2 7860

"Will" <Wi************@hotmail.com> wrote in message
Dim stDocName As String

stDocName = "rptCosts"
DoCmd.OutputTo acReport, stDocName

Thanks
Will

Hi Wil try this

Dim stDocName As String
DoCmd.OutputTo acReport, stDocName, "RichTextFormat(*.rtf)", "yourname.rtf",
True

True means that the file will automatically be opened on creation (change to
false if you do not like this).

- Nicolaas
Nov 13 '05 #2
Modified From the help file

DoCmd.OutputTo acOutputReport, stDocName _
acFormatRTF, "C:\My Documents\Employee.rtf", True

Place your cursor on the key word (i.e. OutputTo) and press F1 to open the
help file on the appropriate help on that topic.

Jeff
"Will" <Wi************@hotmail.com> wrote in message
news:31*************@individual.net...
I am trying to export a report straight to RTF. At the moment when I click on export an output to box appears asking which format (HTML, Excel, MS DOS, RTF, Snapshot). I want to skip this and save to RTF automatically. I have searched and can't find a solution. My code looks like this:

Dim stDocName As String

stDocName = "rptCosts"
DoCmd.OutputTo acReport, stDocName

Thanks
Will

Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1102
by: Jacky11 | last post by:
I have a table with several fields In the field "ImageName" I enter the name of the image for that record. The images can have multiple pages, so I want to save them as a Tif or Mdi file. I...
5
3033
by: mik18 | last post by:
I'm having trouble with exporting reports to Word in the rtf format and I'm hoping someone has a solution. The reports are losing their formats. Not all the formating is lost but some is and of...
0
1219
by: Will | last post by:
I am trying to export & save a report to PDF format in Windows 98. I have the code from here http://www.granite.ab.ca/access/pdffiles.htm which changes registry settings and this works great for...
6
2164
by: jpatchak | last post by:
Hi, I have kind of a strange problem. I have a report that I need to export to excel. The report opens fine in Access and when I export it or click on "Analyze It with Microsoft Office Excel," I...
1
2971
by: Kathy | last post by:
I have a number of reports in a MS Access application that have a logo picture embedded in the report. When I run the report and choose File, then Export to Excel, I get an error indicating...
3
2498
by: jennwilson | last post by:
Access 2000 - I have developed a database that houses patient information. The patient information must be sent in an excel file to another company department. I know how to export my data to Excel...
1
5384
by: anon3803 | last post by:
I have a report in Access that has a lot of grouping (sometimes over 5 group headers). When I export it to Excel where more people can use it and are familiar it creates a lot of blank rows when...
11
4496
patjones
by: patjones | last post by:
Hi, It feels strange to be the one doing the asking after so much answering, but this one is driving me crazy. I have a simple database with a table, a form, and a report based on the table....
0
1066
by: KiwiGenie | last post by:
I have some reports which contain subreports that I want to export as HTML documents. The code all runs smoothly, but when I open the HTML files I can only see the information that was contained in...
0
7012
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7180
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,...
1
6901
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5479
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4920
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4605
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3105
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3101
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
307
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.