Hash cookies in report header

Questions related to nuBuilder Forte Reports and the Report Builder.

Hash cookies in report header

Postby tonyd » Sat Mar 31, 2018 9:23 pm

Is it a bug or a feature that the hash cookies for #day# #month# and #year# do not work in the report header?
TonyD
tonyd
 
Posts: 68
Joined: Mon Mar 05, 2018 3:08 am

Re: Hash cookies in report header

Postby tonyd » Sun Apr 01, 2018 10:55 pm

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().
TonyD
tonyd
 
Posts: 68
Joined: Mon Mar 05, 2018 3:08 am

Re: Hash cookies in report header

Postby admin » Mon Apr 02, 2018 4:26 am

TonyD,

Thanks for letting people know.

Steven
admin
Site Admin
 
Posts: 3136
Joined: Mon Jun 15, 2009 9:53 am


Return to Reports