ACC2: Output To RTF or TXT Ignores Section's CanShrink Property

ID: Q131828


The information in this article applies to:


SYMPTOMS

Advanced: Requires expert coding, interoperability, and multiuser skills.

When you use the Output To command to output a report to a Rich Text Format (RTF) file or an MS-DOS Text (TXT) file, the CanShrink property of a section is ignored.


STATUS

This behavior no longer occurs in Microsoft Access version 7.0.


MORE INFORMATION

Steps to Reproduce Problem


  1. Open the sample database NWIND.MDB.


  2. Create a blank report based on the Employees table and save it as Report1.


  3. If it is not displayed, choose Field List from the View menu, and then drag the First Name field from the Field List box to the top of the detail section.


  4. Set the First Name control's properties as follows:
    
           Name: First Name
           ControlSource: First Name
           CanShrink: Yes
           Left: 1
           Top: 0
           Height: .5 


  5. Drag the Last Name field from the Field List box to the detail section below the First Name field.


  6. Set the Last Name control's properties as follows:
    
           Name: Last Name
           ControlSource: Last Name
           CanShrink: Yes
           Left: 1
           Top: .5
           Height: .5 


  7. Set the detail section's CanShrink property to Yes.


  8. Preview the Report1 report. Note that there are no blank lines between the Last Name and First Name fields.


  9. From the File menu, choose Output To.


  10. In the Select Format box, select MS-DOS Text (*.txt), and then choose the OK button.


  11. In the File Name box, type the filename canshrnk.txt, and then choose OK.


  12. Switch to File Manager and locate the CANSHRNK.TXT file. Double- click the CANSHRNK.TXT file to open it in Notepad. Note that the records have blank space between the fields.



REFERENCES

For more information about the Output To command, search for "Output To," and then "Output To Command (File Menu)" using the Microsoft Access Help menu.


Keywords          : kbusage OtpProb 
Version           : 2.0
Platform          : WINDOWS 
Issue type        : kbbug 

Last Reviewed: April 30, 1999