Trace: Using Raw Values


Using Raw Values

The reporting engine replaces placeholders with dynamically generated text. The template in RTF contains font definitions which will be replaced as well. This is usually not a problem if there is some text before and after the replaced value. But if you want to use a specific font only for the placeholder, it might be a problem.

To solve this, simply define the font for the placeholder:


The test code is simple:

Bean bean = new Bean();
bean.put("PEACE", "A"); 
BeanNode node = new BeanNode(bean);
RtfWorker w = new RtfWorker();
w.saveDocument(new FileOutputStream(getTempOutputFile("result_fontvalue.rtf")));

The result RTF document will show you the peace fingers!

This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information