Hullo Good Friends,
I do need your help. Please help me.
I am encountering a very puzzling problems using Microsoft Office WORD 2003 on C#NET2008 Window Application.
I am trying to export Customer Invoice Transactions to NonTemplate WORD 2003 Document and it's not working
using System;
using System.Data.SqlClient;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.IO;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Microsoft.Office;
using Microsoft.Office.Interop.Word;
Error messages generated:
Error 1 The type name 'Application' does not exist in the type 'Microsoft.Office.Interop.Word.Words'
Error 2 The type name 'Document' does not exist in the type 'Microsoft.Office.Interop.Word.Words'
Error 3 The type name 'Table' does not exist in the type 'Microsoft.Office.Interop.Word.Words'
Error 4 The type name 'Range' does not exist in the type 'Microsoft.Office.Interop.Word.Words'
Error 5 The type or namespace name 'Word' could not be found (are you missing a using directive or an assembly reference?)
namespace CSharpNet2008UseWORD2003
{
public partial class FrmWORDReport : Form
{
//---declare and instantiate WORD Objects
private Words.Application objWord;
private Words.Document objDoc;
private Words.Table objTable;
private Words.Range objTableRange;
}
}
I have tried using these coding and it's not working either:
private Word.Application objWord;
private Word.Document objDoc;
private Word.Table objTable;
private Word.Range objTableRange;
Loading
VulpesPosted Aug 29, 2011, 5:01 AM
http://support.microsoft.com/kb/316384
Lennie KuahPosted Aug 28, 2011, 7:07 PM
Thank you very much for sharing information with me. Appreciate your help very much.
I will try our your suggested coding and will return to you with the result.
Can you please share with me the REFERENCE FILE USED ?
If my application is working, I will post the Overall coding here to share with other Newbies who have similar problems.
cheers,
Lennie
VulpesPosted Aug 28, 2011, 6:21 AM
Lennie KuahPosted Aug 26, 2011, 7:30 PM
I have tried your suggestion when I develop the application and it generate this error message. that's the reason why I posted my problem earlier. Thanks anyway for trying to help me.
This is the earlier Posting:
Error messages generated:
Error 1 The type name 'Application' does not exist in the type 'Microsoft.Office.Interop.Word.Words'
Suthish NairPosted Aug 26, 2011, 3:09 AM