Quantcast
Channel: Access for Developers forum
Viewing all articles
Browse latest Browse all 14673

Bug: Rich Text Box with CanGrow = True cut off in Access Report

$
0
0

It look like we've hit a bug that causes the first line of text boxes to be dropped. It happens under very specific circumstances:

  • The text box format is "Rich Text",
  • the text box's "Can Grow" property is set to "Yes",
  • the first page of the report is not included in the printout.

Has anyone encountered this bug before and knows a workaround?

How to reproduce the bug:

  1. Create an empty database.
  2. Create a new report in design view.
  3. Enlarge the Detail section to ensure that the report spans two pages (e.g. 31cm).
  4. At the bottom of the Detail section, add a Text box with the following properties:
    - Control Source: ="<div>row1</div><div>row2</div>"
    - Text Format: Rich Text
    - Can Grow: Yes
  5. Go to Print Preview. Note that row1 and row2 are shown on the second page.
  6. Print the report (completely). Note that row1 and row2 are being printed.
  7. Print only the second page of the report (in the Print Dialog: "Pages From: 2 To: 2").

Here's where the fun happens:

Expected result: row1 and row2 are being printed.
Observed result: Only row2 is printed.

The choice of printer does not seem to matter (it works with our HP LaserJet as well as with the MS XPS virtual printer driver). The problem can be reproduced with both Access 2007 and 2010 (including SP1).




Viewing all articles
Browse latest Browse all 14673

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>