ACC2000: Print To File Option Inserts Unsupported Characters (208383)
The information in this article applies to:
This article was previously published under Q208383 Novice: Requires knowledge of the user interface on single-user computers.
This article applies to a Microsoft Access database (.mdb) and to a Microsoft Access project (.adp).
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.
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 edit the file manually by deleting the unsupported ASCII characters. However, the recommended way is to output the file to a text file. To do this, follow these steps: CAUTION: If you follow the steps in this example, you modify the sample database Northwind.mdb. You may want to back up the Northwind.mdb file and follow these steps on a copy of the database. - Start Microsoft Access and open the sample database Northwind.mdb.
- In the Database window, click Reports under Objects, 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.
- In the Database window, click Macros under Objects, click New, and then create the following macro:
Macro Action
------------
OutputTo
Action Arguments
--------------------------
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, point to Macro, and then click Run 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.
REFERENCESFor more information about the OutputTo action, click Microsoft Access Help on the Help menu, type outputto action in the Office Assistant or the Answer Wizard, and then click Search to view the topic.
Modification Type: | Major | Last Reviewed: | 6/30/2004 |
---|
Keywords: | kbprb KB208383 |
---|
|