Click here to Skip to main content
15,889,723 members
Home / Discussions / C#
   

C#

 
GeneralRe: Simple Mime / mail messages Pin
ColinBashBash25-Apr-05 4:00
ColinBashBash25-Apr-05 4:00 
GeneralData Manipulation Pin
Illegal Operation22-Apr-05 3:51
Illegal Operation22-Apr-05 3:51 
GeneralRe: Data Manipulation Pin
turbochimp22-Apr-05 4:11
turbochimp22-Apr-05 4:11 
QuestionHow to set Timeout in a asynchronus WebRequest Pin
User-37793622-Apr-05 3:16
User-37793622-Apr-05 3:16 
GeneralWindows Service dont appear in Service Panel Pin
Adnan Siddiqi22-Apr-05 2:47
Adnan Siddiqi22-Apr-05 2:47 
GeneralRe: Windows Service dont appear in Service Panel Pin
John Fisher22-Apr-05 7:33
John Fisher22-Apr-05 7:33 
GeneralDataset.GetXml() problem Pin
padvit22-Apr-05 2:41
padvit22-Apr-05 2:41 
GeneralOpen a Word Document Pin
fatihsen22-Apr-05 1:52
fatihsen22-Apr-05 1:52 
Hi, i want to open a word document in an existing class including the below code.

.........
.........
object fileName = strFileName;
object readOnly = false;
object isVisible = true;
object missing = System.Reflection.Missing.Value;

oDoc = oWordApplic.Documents.Open(ref fileName, ref missing,ref readOnly, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref isVisible,ref missing,ref missing,ref missing, ref missing);

oDoc.Activate();

It works fine in my computer which includes Office 2003, but if I try to run this code in another computer which includes Office 2002 it gives the following error:

Error-->"System.Exception: object reference not set to an instance of an object.

this error occurs in the line of oDoc = oWordApplic.Documents.Open(..) .

Can anybody help me please.

Fatih Sen
GeneralRe: Open a Word Document Pin
mav.northwind22-Apr-05 2:11
mav.northwind22-Apr-05 2:11 
GeneralRe: Open a Word Document Pin
fatihsen22-Apr-05 2:21
fatihsen22-Apr-05 2:21 
GeneralRe: Open a Word Document Pin
mav.northwind22-Apr-05 2:28
mav.northwind22-Apr-05 2:28 
GeneralRe: Open a Word Document Pin
fatihsen22-Apr-05 2:38
fatihsen22-Apr-05 2:38 
GeneralRe: Open a Word Document Pin
fatihsen22-Apr-05 3:36
fatihsen22-Apr-05 3:36 
QuestionWhy when I change the ReportSource of a report, the report not change? Pin
Ana-Gabriela Clem22-Apr-05 1:39
Ana-Gabriela Clem22-Apr-05 1:39 
AnswerRe: Why when I change the ReportSource of a report, the report not change? Pin
Yulianto.22-Apr-05 19:31
Yulianto.22-Apr-05 19:31 
GeneralRe: Why when I change the ReportSource of a report, the report not change? Pin
Ana-Gabriela Clem24-Apr-05 7:28
Ana-Gabriela Clem24-Apr-05 7:28 
GeneralA question about calling an unmanaged dll Pin
Micke B22-Apr-05 1:00
Micke B22-Apr-05 1:00 
GeneralRe: A question about calling an unmanaged dll Pin
John Fisher22-Apr-05 6:45
John Fisher22-Apr-05 6:45 
GeneralRe: A question about calling an unmanaged dll Pin
Micke B22-Apr-05 7:13
Micke B22-Apr-05 7:13 
GeneralRe: A question about calling an unmanaged dll Pin
Micke B26-Apr-05 2:37
Micke B26-Apr-05 2:37 
GeneralRe: A question about calling an unmanaged dll Pin
Paul Largent15-Jun-05 7:16
Paul Largent15-Jun-05 7:16 
GeneralFull screen issue Pin
Lalit N Dubey21-Apr-05 23:19
Lalit N Dubey21-Apr-05 23:19 
GeneralRe: Full screen issue Pin
Anonymous22-Apr-05 2:01
Anonymous22-Apr-05 2:01 
GeneralWhy string is reference data type. Pin
Member 180659621-Apr-05 21:48
Member 180659621-Apr-05 21:48 
GeneralRe: Why string is reference data type. Pin
S. Senthil Kumar21-Apr-05 22:24
S. Senthil Kumar21-Apr-05 22:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.