Hello all,
I'm creating a ASP.net Web application. I've to copy the 'Textbox' text on button click on a particular location to an existing Word document.
Scenario:-
Suppose TextBox.Text="Hello"
Once, the 'Submit' botton is clicked, the existing Word document is opened, and a particular heading e.g 'Greeting' is searched.
If the heading is found in document, the 'TextBox.Text' should be written below this heading(i.e. on next immediate line).
Currently, I'm able to retrieve Textbox.Text data from WebForm and write it on end of file as shown in code below:-
using System;
using System.Collections.Generic;
using Microsoft.Office.Interop.Word;
using Application = Microsoft.Office.Interop.Word.Application;
namespace CopyToWord
{
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
...
Go to the complete details ...