P
Peter Jung
Hi,
I am trying to create an InfoPath solution that allows users to store text
in XML files. The user shall be able to format the text in terms of font,
alingment, etc. The XML files will be processed by different applications.
Currently I am using rich text controls to accomplish this.
Infopath is storing the content of rich text fields in XML files as XHTML.
If I format parts of the text Infopath will enclose the formatted text in
<div> or <font> tags with the appropriate attributes being set.
However, if the user leaves the formatting unchanged (i.e. he assumes the
default font, alignment, etc. defined in the InfoPath solution is used), no
formatting information is added to the XHTML. This is a problem since the
applications processing the XML files need explicit formatting information.
My question is:
- Is there any way to tell InfoPath to add the formatting information to the
XML even when the default is used?
- If not, can I do it by script (any hint on how to do it would be
appreciated)?
- Is InfoPath the right tool at all?
Thanks in advance,
Peter
I am trying to create an InfoPath solution that allows users to store text
in XML files. The user shall be able to format the text in terms of font,
alingment, etc. The XML files will be processed by different applications.
Currently I am using rich text controls to accomplish this.
Infopath is storing the content of rich text fields in XML files as XHTML.
If I format parts of the text Infopath will enclose the formatted text in
<div> or <font> tags with the appropriate attributes being set.
However, if the user leaves the formatting unchanged (i.e. he assumes the
default font, alignment, etc. defined in the InfoPath solution is used), no
formatting information is added to the XHTML. This is a problem since the
applications processing the XML files need explicit formatting information.
My question is:
- Is there any way to tell InfoPath to add the formatting information to the
XML even when the default is used?
- If not, can I do it by script (any hint on how to do it would be
appreciated)?
- Is InfoPath the right tool at all?
Thanks in advance,
Peter