locked
Write html <ul> <li> list to word document RRS feed

  • Question

  • User586831054 posted

    hi guys,

    I am using Interop.Word to create a word document using C#.net. Is it possible to write html <ul> - <li> list to a word document, which should be shown as butteled list. 

     

    Thursday, April 29, 2010 7:11 AM

All replies

  • User-1645128838 posted

    yes it is posible..  form a string that contain all html tags along with ur code like


    dim str = "<ul> <li>1st item</li><li> 2nd item </li></ul>"


    then write this string using response.write

    Thursday, April 29, 2010 8:28 AM
  • User535082756 posted

    hi

    yes it is possible. Try the below link. Hope it helps,thanks,

    http://forums.asp.net/t/1224223.aspx


     

    Thursday, April 29, 2010 8:30 AM
  • User586831054 posted

    hi guys,

    @rizwanparkar - As I had mentioned, I am using Interop.Word to create a physical word document I don't want use Response.ContentType = 'application/word' and Response.Write.

    @cninjas - I had already refered that link, it do not contain answer to my question. Also I dont want to use any third parth control.

     

     

    Friday, April 30, 2010 4:56 AM
  • User-1645128838 posted

    http://nishantrana.wordpress.com/2007/11/03/creating-word-document-using-c/

    refer this blog .. mght help


    Friday, April 30, 2010 6:33 AM