transforming memo field to wordml - InfoPath Dev
in

InfoPath Dev

transforming memo field to wordml

Last post 01-18-2006 09:06 AM by Matt Faus. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 12-07-2005 02:48 PM

    transforming memo field to wordml

    Hello,

    Hoping someone could give me a hand please. I have a text box that accepted multiple line of text and when a user press a button it transforms that text into a word document. Everything is working fine except if there is a line break, it just transform into a single line. Any code on how to solve this or information that I should look into?

    Thank you,
    Howard.
  • 12-08-2005 01:00 AM In reply to

    Re: transforming memo field to wordml

    Hi Howard and welcome to our forum,
    My guess is that you will have to strip out the LF characters in the rich text from the XHTML field. This has been discussed before. Try to search on LF/CR and XHTML. I think the Microsoft blog might also have some info.

    Patrick Halstead [InfoPath MVP]
    InfoPathDev
    Patrick Halstead
    Project Manager at Qdabra
  • 12-08-2005 07:11 AM In reply to

    Re: transforming memo field to wordml

    Hi Patrick,

    Thanks for the reply. Actually I'm not using rich text control at all, just a plain text box. The thing I don't understand is if I have the following text:

    line 1
    line 2
    line 3

    and when it transform into word, it just displays "line 1line 2line 3". No line break.

    Any other suggestion of what I should do next?

    Thank you,
    Howard
  • 12-08-2005 11:35 AM In reply to

    Re: transforming memo field to wordml

    You probably want to use a rich text box if your translating to Word. If you must use a regular textbox I would suggest having a hidden rich text box that you copy the content from the regular textbox into. Then, transform using the rich text box, not the regular. This way you can translate formating characters (such as line breaks) from InfoPath to Word - the regular textbox has no text formating characters.

    ---------------
    Matt Faus
    Matt Faus / Microsoft InfoPath MVP
    Qdabra® Software / Streamline data gathering to turn process into knowledge
  • 01-18-2006 09:06 AM In reply to

    Re: transforming memo field to wordml

    Check out this really cool article for more information:

    http://blogs.3sharp.com/Blog/davidg/archive/2005/08/12/920.aspx

    ---------------
    Matt Faus
    InfoPath Dev Texas
    Matt Faus / Microsoft InfoPath MVP
    Qdabra® Software / Streamline data gathering to turn process into knowledge
Page 1 of 1 (5 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.