Skip to Content
author's profile photo Former Member
Former Member

How to have a "rich text" in a printout managed by IFbA

Hi to everyone,

my problem is how to effectively use a "rich text" field in an form created by Adobe LiveCycle.

I created some forms (not interactive, in this case, just printouts), and if I try to use a text field with some XHTML text inside (just to have some part of the text bold, or italic, and so on...) the result is that the text field shows the XHTML code, without any "interpretation".

The content of the field is filled dynamically from an ABAP webdynpro application using a ZCI layout and a XML schema based interface (automatically generated from the context) , but I got the same bad result using a stand-alone report (executed by the SAPgui) using a standard layout and an ABAB dictionary based interface .

In the first case, the field is copied to the context before the form is shown; it is included in a webdynpro view. In the second one, the form is called by the function module, passing to it the necessary values as input parameters.

Any suggestions?

Your help will be greatly appreciated.

I already found the blog "Text Fields in Adobe Interactive Forms" (/people/juergen.hauser2/blog/2006/03/01/growing-rich-text-fields-in-adobe-interactive-forms) but apparently some other guy had the same problem as me and they still seem to be unsolved...

Thanks anyway, bye

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Feb 25, 2009 at 03:01 PM

    Hi Simone,

    with the following java script you can force the designer to interpret the xhtml code as rich text:

    var sXHTML = inputText.rawValue;
    sxhtmlText.value.text.value = sXHTML;
    richText.value.exData.loadXML(sXHTML);

    sXHTML is just a short variable for testing...

    sxhtmlText is the Rich-Text-Textfield...

    as input you need something like this:

    inputText.rawValue	= "<body xmlns=\"http://www.w3.org/1999/xhtml\" xmlns:xfa=\"http://www.xfa.org/schema/xfa-data/1.0/\" xfa:APIVersion=\"Acroform:2.2.4333.0\" xfa:spec=\"2.1\"><i><u>Test Field</u></i></body>";
    

    If you're going on to pdf-preview the sxhtmlText-field should be filled with: Test Field

    I hope this helped

    best regards,

    Matthias

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.