We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Applying styles with .AppendHTML (DocIO)

Thread ID:

Created:

Updated:

Platform:

Replies:

79028 Jan 16,2009 03:47 PM Jan 27,2009 08:32 AM ASP.NET Web Forms (Classic) 4
loading
Tags: DocIO
John SivillaDUPLICATE
Asked On January 16, 2009 03:47 PM

I have HTML fragments which I inserted into a table cell as part of a word document, and I am trying to map the Word Styles to the HTML tags. I managed to get it partially working by adding styles to the document using the following:

style = (IWParagraphStyle)document.AddParagraphStyle("Heading 2");
style.CharacterFormat.FontSize = 18;
etc...

and the

tags do get rendered with the proper formatting. However, I now want to assign styles to other tags such as

and

  • etc. and I need a way to map the Word style to the HTML tag?

    I don't know if I am on the right track, but I can't find anything in the documentation.

    thanks,





  • Bhuvaneswari P [Syncfusion]
    Replied On January 19, 2009 08:25 AM

    Hi John,

    Thank you for your interest in Syncfusion products.

    We can only convert and insert the HTML tags into the word document. But it is not possible to format the text based on the tags. You can format those paragraphs after inserted the content HTML tags into the document, but not based on the tags.

    Please let me know if you have any questions.

    Best Regards,
    Bhuvana



    John SivillaDUPLICATE
    Replied On January 22, 2009 03:26 PM

    thanks for the response... I have another question.

    I have inserted some HTML into a document. The HTML contains
  • tags which, when rendered in Word, are converted to a numbered list. When the text of the item spans more than the length of a line the text on the second line is not aligned with the text of the first.

    How do I do this?

    thanks,



  • John SivillaDUPLICATE
    Replied On January 22, 2009 03:53 PM

    Also.... How do you set Headers to appear everywhere but on the first page?

    thanks,


    Bhuvaneswari P [Syncfusion]
    Replied On January 27, 2009 08:32 AM

    Hi John,

    Thanks for the details.

    I am afraid that I unable to reproduce the list issue. It’s working fine when converting the document with list to HTML document.
    Please refers to the below sample:
    http://www.syncfusion.com/uploads/redirect.aspx?file=DocToHTML1_1d45d559.zip&team=support

    Please have a look into the sample and please provide your sample to reproduce the issue in our end with the below system details.

    1. Essential Studio version
    2. Office version, Browser details
    3. OS details.

    Regarding the Header/Footer:

    Currently we don't have support for this feature and we have forward regarding this to our development team and will update the details within two business days.

    Best Regards,
    Bhuvana



    CONFIRMATION

    This post will be permanently deleted. Are you sure you want to continue?

    Sorry, An error occured while processing your request. Please try again later.

    You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

    ;