using Microsoft.Office.Core;
using Microsoft.Office;
using Microsoft.Office.Interop.Word;
namespace CSharpDelegatePractice
{
public partial class FrmCustomerMaint : Form
{
private Microsoft.Office.Interop.Word.Words objWord;
private Microsoft.Office.Interop.Word.Document objDoc;
private void WordToolStripMenuItem_Click(object sender, EventArgs e)
{
string strsql = "Select * from TblSales where SalesID = " + txtSalesID
objWord = new Microsoft.Office.Interop.Word.Words(); <--- Error
objDoc = new Microsoft.Office.Interop.Word.Document();
}
}
}