locked
how do I programmatically generate html RRS feed

  • Question

  • Hi,

    I have a windows mobile application and I'm trying to generate html page programmatically and display it in a windows mobile browser. How can I do it?
    Thank you
    Wednesday, July 8, 2009 7:30 PM

Answers

  • If you want to display it in browser then you would need to save it to the file. If you're using WebBrowser control then you can do this:

    VB:

    webBrowser.DocumentText = "Your Html string Here"


    C#:

    webBrowser.DocumentText = "Your Html string Here";


    This posting is provided "AS IS" with no warranties, and confers no rights.
    • Marked as answer by kristin09 Wednesday, July 8, 2009 8:04 PM
    Wednesday, July 8, 2009 8:02 PM

All replies

  • Hi Kristin09,

    It's very simple you have to create a html file and need to save as ".htm or .html" extension, and programmatically you have to create a windows mobile browser instant and its property you have to pass html file path. and open browser.

    it wil work


    Hope this may be help.




    Pavan Pareta | If you find my post is helpful for you then mark as a answer.
    • Proposed as answer by WmDev Wednesday, July 8, 2009 7:35 PM
    Wednesday, July 8, 2009 7:34 PM
  • Hi Pavan Pareta,

    I think I didn't ask the question correctly, sorry...I want to display some html (text, links, etc) in a browser, but I do not want to save it as a page. Is it a way I can display html on the fly?

    Thanks again.
    Wednesday, July 8, 2009 7:43 PM
  • If you want to display it in browser then you would need to save it to the file. If you're using WebBrowser control then you can do this:

    VB:

    webBrowser.DocumentText = "Your Html string Here"


    C#:

    webBrowser.DocumentText = "Your Html string Here";


    This posting is provided "AS IS" with no warranties, and confers no rights.
    • Marked as answer by kristin09 Wednesday, July 8, 2009 8:04 PM
    Wednesday, July 8, 2009 8:02 PM