Page 1 of 1
Hash cookies in report header
Posted: Sat Mar 31, 2018 1:53 pm
by tonyd
Is it a bug or a feature that the hash cookies for #day# #month# and #year# do not work in the report header?
Re: Hash cookies in report header
Posted: Sun Apr 01, 2018 3:25 pm
by tonyd
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?
Figured it out!
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().
Re: Hash cookies in report header
Posted: Sun Apr 01, 2018 8:56 pm
by admin
TonyD,
Thanks for letting people know.
Steven