1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Accessのレポートで印刷時拡張設定すると思わぬレイアウト崩れ起きるかもしれないから注意ね

Posted at

印刷時拡張ってなんぞ?

枠を超える量の文字が入ったらテキストボックスが自動で下にのび~る機能。
プロパティ書式 タブのとこで設定できるん。
image.png

例えばこんな使い方するとレイアウト崩れる

『text_box_expand』には印刷時拡張設定してあるます。
image.png
枠を超えない程度の文字数なら問題ナッシング。
image.png
ちょっと文字数多くなって印刷時拡張されると、右にある日付のテキストボックスが下がってイラストにかぶっちゃう。
image.png

印刷時拡張に引っかかって位置が変わっちゃう条件

『text_box_date』の 上辺 は『text_box_expand』の 下辺よりも低い位置 にあります。
こういう子が印刷時拡張に 引っかかって位置が下がります
image.png

テキストボックスはできる限り高さを確保しておいた方が無難です

こんなふうにある程度高さを取っておけば、印刷時拡張の副作用を受けるオブジェクトを減らせます。
image.png
印刷時拡張が起きても『text_box_date』の位置はそのまま。
image.png

蛇足

テストの時は『ものごっつ長い文字列にしてみる』みたくちょっとイジワルなデータにすると、こういうバグを発見しやすいです。

バージョン

Windows10 Pro バージョン20H2 OSビルド19042.746
Access for Microsoft 365 MSO(16.0.13530.20054)32ビット

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?