cancel
Showing results for 
Search instead for 
Did you mean: 

How to include formating options present in "FormatTextEdit" UI element in Smartform

sangeetha_sk
Participant
0 Kudos

Hi All,

I need your help in below requirement

We need to use FormatTextEdit UI element in our WDA, so that text entered in UI element along with formatting options needs to be printed in PDF form through smartform.

We are using Smartform to get PDF not adobe form. So we are facing issue in converting HTML tags which we get as a result of "FormatTextEdit" UI element in smartform.

In PDF ( which is generated using Smartform inside our component), HTML tags are getting printing like

We tried using "cl_wd_formatted_text", but could not find solution in integrating those HTML tags inside our smartform.

Is there is any FM or Utility to convert HTML tags to smartform or any other approach to fulfil our requirement?

Please help.

Thank you

Sangeetha

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member184578
Active Contributor
0 Kudos

Hi,

You can convert smart form or RTF text to HTML tags but not the other way. There is no such provision.  You can check the class CL_WD_FORMATTED_TEXT which has method to convert smartform/sap script to /formatted text . May be you can check that and try to do the reverse way.

But SAP doesn't have any such provision to convert HTML to other formats.

Hope this helps,

Regards,

Kiran

sangeetha_sk
Participant
0 Kudos

ThanQ Kiran for your input.

Yes we also tried using CL_WD_FORMATTED_TEXT but could not find solution.