ACC: Print To File Option Inserts Unsupported Characters (153759)
The information in this article applies to:
- Microsoft Access for Windows 95 7.0
- Microsoft Access 97
This article was previously published under Q153759 Novice: Requires knowledge of the user interface on single-user computers.
SYMPTOMS
When you print to a file by using the Print To File option in the Print
dialog box, the file created with a Generic/Text Only printer driver
contains characters not supported by Microsoft Windows 95.
RESOLUTION
There are two ways to work around this behavior. One way is to use the
Print To File option in the Print dialog box, and then to edit the file
manually by deleting the unsupported ASCII characters. However, the
recommended way is to output the file to a text file. The following steps
demonstrate this method:
- Open the sample database Northwind.mdb.
- Click the Reports tab, and then click New. In the New Report dialog box,
click Design View, base the new report on the Categories table, and
then click OK.
- If the Field List box is not displayed, click Field List on the
View menu,.
- Drag the CategoryName field to the report's detail section.
- Close and save the report as Report1.
- Click the Macros tab, click New, and create the following macro:
Macro Action
------------
OutputTo
Macro1 Actions
--------------------------
Object type: Report
Object name: Report1
Object format: MS-DOS Text
Output file: C:\Test.txt
Auto Start: No
- Close and save the macro as Macro1.
- On the Tools menu, click Macro. In the Run Macro dialog box, select
Macro1, and then click OK.
- Open the C:\Test.txt file in Notepad or another text editor. Note
that there are no unsupported ASCII characters in the Test.txt file
and that the spacing between the controls is close to what it was in
Microsoft Access Print Preview.
REFERENCES
For more information about the OutputTo method, search for "OutputTo
Method" using the Microsoft Access Help Index.
| Modification Type: | Major | Last Reviewed: | 11/3/2003 |
|---|
| Keywords: | kbprb KB153759 |
|---|
|