Profile picture for user Nique

Hi

In our Description-Fields of Objects, we have some formating like Bold-Text.

I use the OutputLnF-Function to report these attributes. The function requires a StyleSheetName, build like this:

p_Output.DefineF(getString("TEXT_STYLE_DEFAULT"), getString("TEXT_FONT_DEFAULT"), 10, CC_BLACK, CC_TRANSPAR,  Constants.FMT_LEFT| Constants.FMT_VCENTER, 1, 0, 0, 0, 0, 1);

But then, the report will not show any bold text.

How can this be solved?

Regards,

Dominik

by Ellen Gambrell Pelletier
Posted on Fri, 09/21/2012 - 15:51

Dominik - you can use the code below to output the formatted text:

var objectDescription = oObjDef.Attribute(Constants.AT_DESC, g_nloc).getHTMLFormattedValue().getHTML();
outfile.OutputFormattedText(objectDescription);
0
by Dominik Jenzer Author
Posted on Mon, 09/24/2012 - 09:25

Awesome, it worked on first try!

It remains a little inelegance. If I enter only text in the description-field, Aris shows "Arial" as Font. When I print, I think that there is no font in the html and the print-out shows a "times" Font.

What helps: mark all text and define Arial explicit. This ends up in some work. Do I have a chance to override (only) the font in the report -  we do not want multiple fonts anyway.

0
by Manuel Herrmann
Posted on Fri, 09/28/2012 - 15:22

Hi,

you could try the following alternation:

outfile.OutputFormattedText(objectDescription.replace("<body>", "<body><font face='Arial'>").replace("</body>", "</font></body>"));

Regards,

Manuel 

0
by Dominik Jenzer Author
Posted on Mon, 10/01/2012 - 11:58

Thanks Manuel, this works fine for us!

Regards,

Dominik

0

Featured achievement

Rookie
Say hello to the ARIS Community! Personalize your community experience by following forums or tags, liking a post or uploading a profile picture.
Recent Unlocks

Leaderboard

|
icon-arrow-down icon-arrow-cerulean-left icon-arrow-cerulean-right icon-arrow-down icon-arrow-left icon-arrow-right icon-arrow icon-back icon-close icon-comments icon-correct-answer icon-tick icon-download icon-facebook icon-flag icon-google-plus icon-hamburger icon-in icon-info icon-instagram icon-login-true icon-login icon-mail-notification icon-mail icon-mortarboard icon-newsletter icon-notification icon-pinterest icon-plus icon-rss icon-search icon-share icon-shield icon-snapchat icon-star icon-tutorials icon-twitter icon-universities icon-videos icon-views icon-whatsapp icon-xing icon-youtube icon-jobs icon-heart icon-heart2 aris-express bpm-glossary help-intro help-design Process_Mining_Icon help-publishing help-administration help-dashboarding help-archive help-risk icon-knowledge icon-question icon-events icon-message icon-more icon-pencil forum-icon icon-lock