How WebBrowser output a text document in Word format saved in HTML format through the WebBrowser element?

Here is my code:

 string path = Application.StartupPath + @"\info\html\page.html"; webBrowser1.Navigate(path); 

The fact is that when you start a form with WebBrowser , the dialog box for selecting actions with a text file ( Сохранить , Открыть ) that Не найден путь к файлу. Введите адрес повторно need is displayed and the message “ Не найден путь к файлу. Введите адрес повторно displayed in the element itself Не найден путь к файлу. Введите адрес повторно Не найден путь к файлу. Введите адрес повторно .

  • 2
    Do you have a >> text document Word << which is >> in html format <<? If you believe your words, you have a passenger car that is in a KAMAZ condition. So what do you actually have? Car or KAMAZ? What is the real extension, and in what format is the source document that you output? - test123
  • The text file is saved as a web document in html format - Alex Sky
  • Did you forget to specify the protocol? Try this URI: file: /// C: /test.html - test123
  • In your case, it will be like this: string path = "file: ///" + Application.StartupPath + "/info/html/page.html"; - test123
  • @AlexSky Can you edit the question to make it clear what your document format is? - Vadim Ovchinnikov

0