Author Topic: Virtual Documents and RTF Templates  (Read 1586 times)

PeterHeintz

  • EA User
  • **
  • Posts: 894
  • Karma: +55/-18
    • View Profile
Virtual Documents and RTF Templates
« on: February 16, 2018, 04:25:42 am »
Hi,
Can anyone enlighten me, how I can use RTF templates for virtual documents. Up to now I did only use virtual documents for html.

I have a rtf-template that works fine on packages.

Now I created a <<report package>> having one <<model document>>.
My first try was to add a tag RTFTemplate to my <<report package>> manually and setting the value to point to my working template.

As a result I got a cover page as expected but all the content was rendered with the system “Model Report” template. I fiddled around with both RTFTemplate tags (<<report package>>, <<report package>>), but whatever I do I get my stuff only rendered with chatty “Model Report”!?! :'(
Best regards,

Peter Heintz

PeterHeintz

  • EA User
  • **
  • Posts: 894
  • Karma: +55/-18
    • View Profile
Re: Virtual Documents and RTF Templates
« Reply #1 on: February 16, 2018, 08:22:16 am »
Ok! Now I found my problem. I assigned template fragments rather than templates to the model reports and those seem to be ignored and the system "Model Report" template is used as default instead.
Best regards,

Peter Heintz