Page 1 of 1

Hash cookies in report header

PostPosted: Sat Mar 31, 2018 9:23 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

PostPosted: Sun Apr 01, 2018 10:55 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

PostPosted: Mon Apr 02, 2018 4:26 am
by admin
TonyD,

Thanks for letting people know.

Steven