4
Answers

How can i Create New word document in webbrowser control ?

Hi,


 I can able to open a word document with in the webbrowser control, now i want to create a new document with in the webbrowser. Let's say i opens abcd.doc word document i have a button like "New" when i click on the new document how can i create the new/balnk word document with in the webbrowser ??


Thanks.
Answers (4)
1
Muhammad Imran Ansari

Muhammad Imran Ansari

260 7.5k 325.9k 3y
Check this nice article on Webbrowser control:
https://www.c-sharpcorner.com/UploadFile/mahesh/webbrowser-control-in-C-Sharp-and-windows-forms/ 
 
Use the following line to open document in new mode:
  1. webBrowser1.Navigate(new Uri("about:blank"));  
 
1
Kip Hackman

Kip Hackman

NA 406 134 3y
I understand that this is an older post, but for those still seeking an answer, the LEADTOOLS Edit SDK allows you to create, view, edit, and save DOCX files.
https://www.leadtools.com/sdk/products/edit
You can leverage the DocumentEditor class which is an editor control for Node and ASP.NET MVC projects that allows you to create and edit new PDF, RTF/TXT, and DOC/DOCX files.
Here is a step by step HTML5/JS Document Editor tutorial:
https://www.leadtools.com/help/sdk/v22/tutorials/html5-import-edit-save-douments-with-the-document-editor.html
1
Ravindra Chigurupati

Ravindra Chigurupati

NA 7 1.9k 10y
Thanks Manish for your reply,


Currently we are using webbrowser control for to open the office document, so we need to create a blank document at first time opening, if he already opened any document at the point of time he tries to create new document by using "Create New" button click so how can we create new document ??
Thanks
1
Manish Kumar Choudhary

Manish Kumar Choudhary

178 11k 5.3m 10y