Infopath rich text fields not formatting correctly in FP

K

kbraiden

Hey all.

I have a SharePoint forms directory that contains forms
created in Infopath.

In those forms is a Rich Text field that has links,
bullets, and other formatting on the text.

When I try to pull that info into my .aspx page via the
Frontpage Data View side panel I cannot get it to retain
the formatting in the rich text fields. It only shows
the text all bunch together without any line breaks.

Anyone seen this issue?
 
M

Mark Fitzpatrick

Rich text is not something that's good to show in an HTML form because Rich
Text and HTML are two widely different things. Rich Text just doesn't work
well with the HTML formatting since HTML is a plain ascii file and rich text
is binary information in most cases. Line breaks, for example, don't mean
anything to HTML because the only line break that HTML really recognizes is
an <br>. The carriage return used in things like rich text and word
processing is ignored as whitespace in HTML. The only way you'll get around
this is to find ways to convert the Rich Text into HTML, which isn't
necessarily easy short of plopping the rich text into word and having it
save as a web page to get the corresponding HTML or working with a whole lot
of scripting code.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top