Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
645
Font info is lost using ultraFormattedTextWordWriter.Export
posted

Hi,

I am using the following code to output the content of a  UltraFormattedTextEditor control to a word document:

  Me.ultraFormattedTextWordWriter1.Export(Me.SummaryUltraFormattedTextEditor, docWriter) where docwriter is a WordDocumentWriter.

I have set the appearance (font) of the texteditor to be Arial, and it shows as Arial in the texteditor, but when exported the font in the control is ignored.

When I examine the string that is being exported it contains markup tags as expected but no any all-enclosing tag that defines the for instance the font.

Here is the string being exported in a test sample: "Some arial text entered<br/>a new line of text<br/><br/>and another one<br/>".

How can I export and spesifying the font using the ultraFormattedTextWordWriter?

Parents
No Data
Reply
  • 23930
    Offline posted

    Hi Kai-Inge,

    Thank you for posting to our forums.

    Have you set the font through the Appearance property? If that is the case then, you should use the Value property instead of the Appearance property to set the Font data. For example to export a word file with bold text in Ariel you could use the following value:

    <span style="font-family:Arial; font-weight:bold;">Some arial text entered<br/>a new line of text<br/><br/>and another one</span><br/>

    Let me know if you have any additional questions.

Children