How to change the font name and font color of the field in the aged accounts receivable report? For example if the there's past due, I want to change the past due amount's font name to Arial bold and font color to red.
Thanks in advance!
There is no runtime property for that. You can only prepare more sections with the data in different fonts and select the right section when printing...
You will create two sections with same fields (controls). In one section, you change the font properties (you have special toolbox for this or you can use property window). In OnPreSection trigger of both sections you add code like:
CurrReport.SHOWOUTPUT(Your condition);
in second one you will use code like:
CurrReport.SHOWOUTPUT(NOT(Your condition));
Where "Your condition" can be something like "Due Date"<TODAY etc..
Right Clickon the field you want to change->Select "properties"
Scroll Down to FontName, FontSize, FontBold, FontItalic and play with those. You can also click on the property Name (ie. FontName) & hit F1 for details.
Ah, sorry, it is my mistake (didn't read it carefully) - but there will be one problem - the color :-) You can change the color, on preview it will be OK, but on printer it will be still black... but it is normal and it will be never changed...
Thank you! Recently I tried to create two sections based on the suggestion of Kami, but it doesn't work either. In my report, there are 30 days, 60 days past due and I created the array for instance amount[1] for 30 days, amount[2] for 60 days. If I write the condition like this amount[2]>0, there's error message telling me that array doesn't work that way, and so how I can write the code using the array? Thanks in advance!
Comments
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Lead Consultant
Theta
in second one you will use code like:
Where "Your condition" can be something like "Due Date"<TODAY etc..
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
but anyway.
Tools->Object Designer->"Aged Accounts Receivable" report->Design->View->Sections
Right Clickon the field you want to change->Select "properties"
Scroll Down to FontName, FontSize, FontBold, FontItalic and play with those. You can also click on the property Name (ie. FontName) & hit F1 for details.
The name does say "Learner"
http://www.BiloBeauty.com
http://www.autismspeaks.org
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.