Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums and content available only to registered users.
Hash cookies in report header
-
- Posts: 68
- Joined: Sun Mar 04, 2018 6:38 pm
Hash cookies in report header
Is it a bug or a feature that the hash cookies for #day# #month# and #year# do not work in the report header?
TonyD
-
- Posts: 68
- Joined: Sun Mar 04, 2018 6:38 pm
Re: Hash cookies in report header
Figured it out!tonyd wrote:Is it a bug or a feature that the hash cookies for #day# #month# and #year# do not work in the report header?
For those that follow: The entire "Title" field of the label object on the Report Designer must fit in the width allocated for that object on the report or any Hash Cookies may not work. For example, if I allocate only 50px to a label object containing the Title #month#/#day#/#year# in the "Title" field, it will render like this:
#mon
th#/#
day#
/#ye
ar#
NOT
6/
24
/1
8
Tip: Allocate more that enough width for any labels that use Hash Cookies within them. This leans more toward a feature than a bug. A fix might be to move the Hash Cookie substitution routine to a function called before nuPrintReport(), like nuReplaceLabelHashVariables().
TonyD