473,748 Members | 2,223 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Error with open word doc.

Hi,
To open a word doc from c#, i use the following code :

Word.Applicatio nClass WordApp = new Word.Applicatio nClass
();

// give any file name of your
choice.
object fileName = "C:\\test.d oc";
object readOnly = false;
object isVisible = true;

// the way to handle parameters
you don't care about in .NET
object missing =
System.Reflecti on.Missing.Valu e;

// Make word visible, so you can
see what's happening
//WordApp.Visible = true;
// Open the document that was
chosen by the dialog
Word.Document aDoc =
WordApp.Documen ts.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);
While executing, Wordapp.Documen ts.Open..it stops with the
following message :

A first chance exception of
type 'System.Invalid CastException' occurred in AdoDemo1.exe

Additional information: QueryInterface for interface
Word._Applicati on failed.

Can anyone help to overcome the above error message.

Thanks
sudha
Nov 15 '05 #1
8 3179
Hi Sudha,

Two questions that will help us troubleshoot the problem better
Which version of Word are you presently using ?
For interop, are you presently using the
(a) Office XP PIAs or
(b) Did you generate the interop wrapper classes manually via TLBIMP
(Add reference in VS.NET)

If you are using Word 2000, then you would need to generate the
interop wrappers via (b).
There are some issues with using Office XP PIAs with Word 2000.

Regards,
Aravind C
"sudha" <su*******@hotm ail.com> wrote in message
news:05******** *************** *****@phx.gbl.. .
Hi,
To open a word doc from c#, i use the following code :

Word.Applicatio nClass WordApp = new Word.Applicatio nClass
();

// give any file name of your
choice.
object fileName = "C:\\test.d oc";
object readOnly = false;
object isVisible = true;

// the way to handle parameters
you don't care about in .NET
object missing =
System.Reflecti on.Missing.Valu e;

// Make word visible, so you can
see what's happening
//WordApp.Visible = true;
// Open the document that was
chosen by the dialog
Word.Document aDoc =
WordApp.Documen ts.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);
While executing, Wordapp.Documen ts.Open..it stops with the
following message :

A first chance exception of
type 'System.Invalid CastException' occurred in AdoDemo1.exe

Additional information: QueryInterface for interface
Word._Applicati on failed.

Can anyone help to overcome the above error message.

Thanks
sudha

Nov 15 '05 #2
Aravind
Thanks for your reply. i am using (a)
I tried (b) but got build errors so i installed office XP
PIAs. How do i go about it. Can you please advise.

Many thanks
sudha
-----Original Message-----
Hi Sudha,

Two questions that will help us troubleshoot the problem betterWhich version of Word are you presently using ?
For interop, are you presently using the
(a) Office XP PIAs or
(b) Did you generate the interop wrapper classes manually via TLBIMP(Add reference in VS.NET)

If you are using Word 2000, then you would need to generate theinterop wrappers via (b).
There are some issues with using Office XP PIAs with Word 2000.
Regards,
Aravind C
"sudha" <su*******@hotm ail.com> wrote in message
news:05******* *************** ******@phx.gbl. ..
Hi,
To open a word doc from c#, i use the following code :

Word.Applicatio nClass WordApp = new Word.Applicatio nClass ();

// give any file name of your
choice.
object fileName = "C:\\test.d oc";
object readOnly = false;
object isVisible = true;

// the way to handle parameters
you don't care about in .NET
object missing =
System.Reflecti on.Missing.Valu e;

// Make word visible, so you can
see what's happening
//WordApp.Visible = true;
// Open the document that was
chosen by the dialog
Word.Document aDoc =
WordApp.Documen ts.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);
While executing, Wordapp.Documen ts.Open..it stops with the following message :

A first chance exception of
type 'System.Invalid CastException' occurred in AdoDemo1.exe
Additional information: QueryInterface for interface
Word._Applicati on failed.

Can anyone help to overcome the above error message.

Thanks
sudha

.

Nov 15 '05 #3
Sudha,

Can you please post the build errors that you're getting.
The current version of Word you're currently using is Word 2003(Office XP).
Correct ?

Regards,
Aravind C
"Sudha" <an*******@disc ussions.microso ft.com> wrote in message
news:05******** *************** *****@phx.gbl.. .
Aravind
Thanks for your reply. i am using (a)
I tried (b) but got build errors so i installed office XP
PIAs. How do i go about it. Can you please advise.

Many thanks
sudha
-----Original Message-----
Hi Sudha,

Two questions that will help us troubleshoot the problem

better
Which version of Word are you presently using ?
For interop, are you presently using the
(a) Office XP PIAs or
(b) Did you generate the interop wrapper classes manually

via TLBIMP
(Add reference in VS.NET)

If you are using Word 2000, then you would need to

generate the
interop wrappers via (b).
There are some issues with using Office XP PIAs with Word

2000.

Regards,
Aravind C
"sudha" <su*******@hotm ail.com> wrote in message
news:05******* *************** ******@phx.gbl. ..
Hi,
To open a word doc from c#, i use the following code :

Word.Applicatio nClass WordApp = new Word.Applicatio nClass ();

// give any file name of your
choice.
object fileName = "C:\\test.d oc";
object readOnly = false;
object isVisible = true;

// the way to handle parameters
you don't care about in .NET
object missing =
System.Reflecti on.Missing.Valu e;

// Make word visible, so you can
see what's happening
//WordApp.Visible = true;
// Open the document that was
chosen by the dialog
Word.Document aDoc =
WordApp.Documen ts.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);
While executing, Wordapp.Documen ts.Open..it stops with the following message :

A first chance exception of
type 'System.Invalid CastException' occurred in AdoDemo1.exe
Additional information: QueryInterface for interface
Word._Applicati on failed.

Can anyone help to overcome the above error message.

Thanks
sudha

.

Nov 15 '05 #4
I meant Word 2002. Sorry. Sleepy after my lunch :-)

"Aravind C" <ar***********@ nospam.hotmail. com> wrote in message
news:OM******** ******@TK2MSFTN GP09.phx.gbl...
Sudha,

Can you please post the build errors that you're getting.
The current version of Word you're currently using is Word 2003(Office XP). Correct ?

Regards,
Aravind C
"Sudha" <an*******@disc ussions.microso ft.com> wrote in message
news:05******** *************** *****@phx.gbl.. .
Aravind
Thanks for your reply. i am using (a)
I tried (b) but got build errors so i installed office XP
PIAs. How do i go about it. Can you please advise.

Many thanks
sudha
-----Original Message-----
Hi Sudha,

Two questions that will help us troubleshoot the problem

better
Which version of Word are you presently using ?
For interop, are you presently using the
(a) Office XP PIAs or
(b) Did you generate the interop wrapper classes manually

via TLBIMP
(Add reference in VS.NET)

If you are using Word 2000, then you would need to

generate the
interop wrappers via (b).
There are some issues with using Office XP PIAs with Word

2000.

Regards,
Aravind C
"sudha" <su*******@hotm ail.com> wrote in message
news:05******* *************** ******@phx.gbl. ..
> Hi,
> To open a word doc from c#, i use the following code :
>
> Word.Applicatio nClass WordApp = new

Word.Applicatio nClass
> ();
>
> // give any file name of your
> choice.
> object fileName = "C:\\test.d oc";
> object readOnly = false;
> object isVisible = true;
>
> // the way to handle parameters
> you don't care about in .NET
> object missing =
> System.Reflecti on.Missing.Valu e;
>
> // Make word visible, so you can
> see what's happening
> //WordApp.Visible = true;
> // Open the document that was
> chosen by the dialog
> Word.Document aDoc =
> WordApp.Documen ts.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);
>
>
> While executing, Wordapp.Documen ts.Open..it stops with

the
> following message :
>
> A first chance exception of
> type 'System.Invalid CastException' occurred in

AdoDemo1.exe
>
> Additional information: QueryInterface for interface
> Word._Applicati on failed.
>
> Can anyone help to overcome the above error message.
>
> Thanks
> sudha
>
>
.


Nov 15 '05 #5
Aravind
Before i put in the office XP PIA , i tried to open word
document by adding reference. It said 'Application-
ambigous reference..' .After i installed the PIA's i dont
get any build errors. but i get this invalidcast operation
run-time exception.
How do i undo this Office XP PIA ? Pls advise.

Thanks
sudha
-----Original Message-----
I meant Word 2002. Sorry. Sleepy after my lunch :-)

"Aravind C" <ar***********@ nospam.hotmail. com> wrote in messagenews:OM******* *******@TK2MSFT NGP09.phx.gbl.. .
Sudha,

Can you please post the build errors that you're getting. The current version of Word you're currently using is Word 2003(Office
XP).
Correct ?

Regards,
Aravind C
"Sudha" <an*******@disc ussions.microso ft.com> wrote in

message news:05******** *************** *****@phx.gbl.. .
> Aravind
> Thanks for your reply. i am using (a)
> I tried (b) but got build errors so i installed office XP > PIAs. How do i go about it. Can you please advise.
>
> Many thanks
> sudha
>
> >-----Original Message-----
> >Hi Sudha,
> >
> >Two questions that will help us troubleshoot the problem > better
> >Which version of Word are you presently using ?
> >For interop, are you presently using the
> >(a) Office XP PIAs or
> >(b) Did you generate the interop wrapper classes manually > via TLBIMP
> >(Add reference in VS.NET)
> >
> >If you are using Word 2000, then you would need to
> generate the
> >interop wrappers via (b).
> >There are some issues with using Office XP PIAs with Word > 2000.
> >
> >Regards,
> >Aravind C
> >
> >
> >"sudha" <su*******@hotm ail.com> wrote in message
> >news:05******* *************** ******@phx.gbl. ..
> >> Hi,
> >> To open a word doc from c#, i use the following code : > >>
> >> Word.Applicatio nClass WordApp = new
> Word.Applicatio nClass
> >> ();
> >>
> >> // give any file name of your
> >> choice.
> >> object fileName = "C:\\test.d oc";
> >> object readOnly = false;
> >> object isVisible = true;
> >>
> >> // the way to handle parameters
> >> you don't care about in .NET
> >> object missing =
> >> System.Reflecti on.Missing.Valu e;
> >>
> >> // Make word visible, so you can
> >> see what's happening
> >> //WordApp.Visible = true;
> >> // Open the document that was
> >> chosen by the dialog
> >> Word.Document aDoc =
> >> WordApp.Documen ts.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);
> >>
> >>
> >> While executing, Wordapp.Documen ts.Open..it stops with > the
> >> following message :
> >>
> >> A first chance exception of
> >> type 'System.Invalid CastException' occurred in
> AdoDemo1.exe
> >>
> >> Additional information: QueryInterface for interface > >> Word._Applicati on failed.
> >>
> >> Can anyone help to overcome the above error message. > >>
> >> Thanks
> >> sudha
> >>
> >>
> >
> >
> >.
> >


.

Nov 15 '05 #6
Aravind,
i undid office XP PIA with
gacutil /u Microsoft.Offic e.Interop.Word
and created a new windows application and just add a COM
reference .
i added same set of code, but got the same error as
given below :

A first chance exception of
type 'System.Invalid CastException' occurred in
AdoDemo1.exe
Additional information: QueryInterface for
interface Word._Applicati on failed.

Please help.
Many thanks
sudha
-----Original Message-----
Aravind
Before i put in the office XP PIA , i tried to open word
document by adding reference. It said 'Application-
ambigous reference..' .After i installed the PIA's i dont
get any build errors. but i get this invalidcast operationrun-time exception.
How do i undo this Office XP PIA ? Pls advise.

Thanks
sudha
-----Original Message-----
I meant Word 2002. Sorry. Sleepy after my lunch :-)

"Aravind C" <ar***********@ nospam.hotmail. com> wrote inmessage
news:OM****** ********@TK2MSF TNGP09.phx.gbl. ..
Sudha,

Can you please post the build errors that you'regetting. The current version of Word you're currently using isWord 2003(Office
XP).
Correct ?

Regards,
Aravind C
"Sudha" <an*******@disc ussions.microso ft.com> wrote in

message news:05******** *************** *****@phx.gbl.. .
> Aravind
> Thanks for your reply. i am using (a)
> I tried (b) but got build errors so i installedoffice XP > PIAs. How do i go about it. Can you please advise.
>
> Many thanks
> sudha
>
> >-----Original Message-----
> >Hi Sudha,
> >
> >Two questions that will help us troubleshoot theproblem > better
> >Which version of Word are you presently using ?
> >For interop, are you presently using the
> >(a) Office XP PIAs or
> >(b) Did you generate the interop wrapper classesmanually > via TLBIMP
> >(Add reference in VS.NET)
> >
> >If you are using Word 2000, then you would need to
> generate the
> >interop wrappers via (b).
> >There are some issues with using Office XP PIAs
withWord > 2000.
> >
> >Regards,
> >Aravind C
> >
> >
> >"sudha" <su*******@hotm ail.com> wrote in message
> >news:05******* *************** ******@phx.gbl. ..
> >> Hi,
> >> To open a word doc from c#, i use the followingcode : > >>
> >> Word.Applicatio nClass WordApp = new
> Word.Applicatio nClass
> >> ();
> >>
> >> // give any file name of your
> >> choice.
> >> object fileName = "C:\\test.d oc";
> >> object readOnly = false;
> >> object isVisible = true;
> >>
> >> // the way to handle parameters
> >> you don't care about in .NET
> >> object missing =
> >> System.Reflecti on.Missing.Valu e;
> >>
> >> // Make word visible, so you can
> >> see what's happening
> >> //WordApp.Visible = true;
> >> // Open the document that was
> >> chosen by the dialog
> >> Word.Document aDoc =
> >> WordApp.Documen ts.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);
> >>
> >>
> >> While executing, Wordapp.Documen ts.Open..it stopswith > the
> >> following message :
> >>
> >> A first chance exception of
> >> type 'System.Invalid CastException' occurred in
> AdoDemo1.exe
> >>
> >> Additional information: QueryInterface forinterface > >> Word._Applicati on failed.
> >>
> >> Can anyone help to overcome the above errormessage. > >>
> >> Thanks
> >> sudha
> >>
> >>
> >
> >
> >.
> >

.

.

Nov 15 '05 #7
HI Sudha,

There's a possibiloity of a version mismatch between the version of
the word you have installed in your machine and the actual type library
you are binding to from th Add Reference.

Can you please try late-binding to see if it makes any diffrence:

Object wordApp = null;
wordApp =
Activator.Creat eInstance(Type. GetTypeFromProg ID("Word.Applic ation", true) );
Word.Applicatio n app = (Word.Applicati on) wordApp;

Then, call app.Documents.O pen() on this instance that you've onbtained via
late binding.

Regards,
Aravind C

"sudha" <an*******@disc ussions.microso ft.com> wrote in message
news:04******** *************** *****@phx.gbl.. .
Aravind,
i undid office XP PIA with
gacutil /u Microsoft.Offic e.Interop.Word
and created a new windows application and just add a COM
reference .
i added same set of code, but got the same error as
given below :

A first chance exception of
type 'System.Invalid CastException' occurred in
AdoDemo1.exe
Additional information: QueryInterface for
interface Word._Applicati on failed.

Please help.
Many thanks
sudha
-----Original Message-----
Aravind
Before i put in the office XP PIA , i tried to open word
document by adding reference. It said 'Application-
ambigous reference..' .After i installed the PIA's i dont
get any build errors. but i get this invalidcast

operation
run-time exception.
How do i undo this Office XP PIA ? Pls advise.

Thanks
sudha
-----Original Message-----
I meant Word 2002. Sorry. Sleepy after my lunch :-)

"Aravind C" <ar***********@ nospam.hotmail. com> wrote in

message
news:OM****** ********@TK2MSF TNGP09.phx.gbl. ..
Sudha,

Can you please post the build errors that you're

getting.
The current version of Word you're currently using is

Word 2003(Office
XP).
Correct ?

Regards,
Aravind C
"Sudha" <an*******@disc ussions.microso ft.com> wrote in

message
news:05******** *************** *****@phx.gbl.. .
> Aravind
> Thanks for your reply. i am using (a)
> I tried (b) but got build errors so i installed

office XP
> PIAs. How do i go about it. Can you please advise.
>
> Many thanks
> sudha
>
> >-----Original Message-----
> >Hi Sudha,
> >
> >Two questions that will help us troubleshoot the

problem
> better
> >Which version of Word are you presently using ?
> >For interop, are you presently using the
> >(a) Office XP PIAs or
> >(b) Did you generate the interop wrapper classes

manually
> via TLBIMP
> >(Add reference in VS.NET)
> >
> >If you are using Word 2000, then you would need to
> generate the
> >interop wrappers via (b).
> >There are some issues with using Office XP PIAs

with
Word
> 2000.
> >
> >Regards,
> >Aravind C
> >
> >
> >"sudha" <su*******@hotm ail.com> wrote in message
> >news:05******* *************** ******@phx.gbl. ..
> >> Hi,
> >> To open a word doc from c#, i use the following

code :
> >>
> >> Word.Applicatio nClass WordApp = new
> Word.Applicatio nClass
> >> ();
> >>
> >> // give any file name of your
> >> choice.
> >> object fileName = "C:\\test.d oc";
> >> object readOnly = false;
> >> object isVisible = true;
> >>
> >> // the way to handle parameters
> >> you don't care about in .NET
> >> object missing =
> >> System.Reflecti on.Missing.Valu e;
> >>
> >> // Make word visible, so you can
> >> see what's happening
> >> //WordApp.Visible = true;
> >> // Open the document that was
> >> chosen by the dialog
> >> Word.Document aDoc =
> >> WordApp.Documen ts.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);
> >>
> >>
> >> While executing, Wordapp.Documen ts.Open..it stops

with
> the
> >> following message :
> >>
> >> A first chance exception of
> >> type 'System.Invalid CastException' occurred in
> AdoDemo1.exe
> >>
> >> Additional information: QueryInterface for

interface
> >> Word._Applicati on failed.
> >>
> >> Can anyone help to overcome the above error

message.
> >>
> >> Thanks
> >> sudha
> >>
> >>
> >
> >
> >.
> >


.

.

Nov 15 '05 #8
Hi Aravind,
Thanks for your reply. I have office 2k and the ref.is
MSWORD9.OLB.
when i tried the solution you have given :

I got this error :
A first chance exception of
type 'System.Invalid CastException' occurred in AdoDemo1.exe

Additional information: Specified cast is not valid.

when it exec : Word.Applicatio n app = (Word.Applicati on)
wordApp;

Please advise.
Thanks again
sudha

-----Original Message-----
HI Sudha,

There's a possibiloity of a version mismatch between the version ofthe word you have installed in your machine and the actual type libraryyou are binding to from th Add Reference.

Can you please try late-binding to see if it makes any diffrence:
Object wordApp = null;
wordApp =
Activator.Crea teInstance(Type .GetTypeFromPro gID ("Word.Applicat ion", true) );Word.Applicati on app = (Word.Applicati on) wordApp;

Then, call app.Documents.O pen() on this instance that you've onbtained vialate binding.

Regards,
Aravind C

"sudha" <an*******@disc ussions.microso ft.com> wrote in messagenews:04******* *************** ******@phx.gbl. ..
Aravind,
i undid office XP PIA with
gacutil /u Microsoft.Offic e.Interop.Word
and created a new windows application and just add a COM
reference .
i added same set of code, but got the same error as
given below :

A first chance exception of
type 'System.Invalid CastException' occurred in
AdoDemo1.exe
Additional information: QueryInterface for
interface Word._Applicati on failed.

Please help.
Many thanks
sudha
>-----Original Message-----
>Aravind
> Before i put in the office XP PIA , i tried to open word >document by adding reference. It said 'Application-
>ambigous reference..' .After i installed the PIA's i dont >get any build errors. but i get this invalidcast

operation
>run-time exception.
> How do i undo this Office XP PIA ? Pls advise.
>
>Thanks
>sudha
>>-----Original Message-----
>>I meant Word 2002. Sorry. Sleepy after my lunch :-)
>>
>>"Aravind C" <ar***********@ nospam.hotmail. com> wrote in >message
>>news:OM****** ********@TK2MSF TNGP09.phx.gbl. ..
>>> Sudha,
>>>
>>> Can you please post the build errors that you're
>getting.
>>> The current version of Word you're currently using is >Word 2003(Office
>>XP).
>>> Correct ?
>>>
>>> Regards,
>>> Aravind C
>>>
>>>
>>> "Sudha" <an*******@disc ussions.microso ft.com> wrote in >message
>>> news:05******** *************** *****@phx.gbl.. .
>>> > Aravind
>>> > Thanks for your reply. i am using (a)
>>> > I tried (b) but got build errors so i installed
>office XP
>>> > PIAs. How do i go about it. Can you please advise.
>>> >
>>> > Many thanks
>>> > sudha
>>> >
>>> > >-----Original Message-----
>>> > >Hi Sudha,
>>> > >
>>> > >Two questions that will help us troubleshoot the
>problem
>>> > better
>>> > >Which version of Word are you presently using ?
>>> > >For interop, are you presently using the
>>> > >(a) Office XP PIAs or
>>> > >(b) Did you generate the interop wrapper classes
>manually
>>> > via TLBIMP
>>> > >(Add reference in VS.NET)
>>> > >
>>> > >If you are using Word 2000, then you would need to >>> > generate the
>>> > >interop wrappers via (b).
>>> > >There are some issues with using Office XP PIAs

with
>Word
>>> > 2000.
>>> > >
>>> > >Regards,
>>> > >Aravind C
>>> > >
>>> > >
>>> > >"sudha" <su*******@hotm ail.com> wrote in message
>>> > >news:05******* *************** ******@phx.gbl. ..
>>> > >> Hi,
>>> > >> To open a word doc from c#, i use the following >code :
>>> > >>
>>> > >> Word.Applicatio nClass WordApp = new
>>> > Word.Applicatio nClass
>>> > >> ();
>>> > >>
>>> > >> // give any file name of your
>>> > >> choice.
>>> > >> object fileName = "C:\\test.d oc";
>>> > >> object readOnly = false;
>>> > >> object isVisible = true;
>>> > >>
>>> > >> // the way to handle parameters
>>> > >> you don't care about in .NET
>>> > >> object missing =
>>> > >> System.Reflecti on.Missing.Valu e;
>>> > >>
>>> > >> // Make word visible, so you can
>>> > >> see what's happening
>>> > >> //WordApp.Visible = true;
>>> > >> // Open the document that was
>>> > >> chosen by the dialog
>>> > >> Word.Document aDoc =
>>> > >> WordApp.Documen ts.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);
>>> > >>
>>> > >>
>>> > >> While executing, Wordapp.Documen ts.Open..it stops >with
>>> > the
>>> > >> following message :
>>> > >>
>>> > >> A first chance exception of
>>> > >> type 'System.Invalid CastException' occurred in
>>> > AdoDemo1.exe
>>> > >>
>>> > >> Additional information: QueryInterface for
>interface
>>> > >> Word._Applicati on failed.
>>> > >>
>>> > >> Can anyone help to overcome the above error
>message.
>>> > >>
>>> > >> Thanks
>>> > >> sudha
>>> > >>
>>> > >>
>>> > >
>>> > >
>>> > >.
>>> > >
>>>
>>>
>>
>>
>>.
>>
>.
>

.

Nov 15 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
4016
by: muser | last post by:
Can anyone run this program through their compiler or if they can see a logical error please point it out. I have my tutor working on it at the moment but I would rather a less ambigious response than the one I think he will provide. The test data, A:\\"514650.txt", appears at the end of the program. The problem is that the program won't read this file and the debugger as far as i know how to work it won't point out the mistake of any....
6
4751
by: Peter Frost | last post by:
Please help I don't know if this is possible but what I would really like to do is to use On Error Goto to capture the code that is being executed when an error occurs. Any help would be much appreciated. Thanks in advance
0
1349
by: murl | last post by:
I have built a new Word Addin to add a Commandbar at the bottom of word, with buttons on it. I followed all the steps from kb articles and other resources, and told it when debugging to open up the WINWORD.exe, but when I run the com in debug mode, the Word 2003 splash screen opens up, then closes with no exceptions being thrown. If I run in debug mode again I get the following error message: "Word experienced a serious error the last time...
2
1745
by: Howard Kaikow | last post by:
MSFT KB article 302896 includes a step by step example demonstrating how to build an Office COM in VB .NET, Yesterday, I implemented the example and it works correctly when starting each of the following Office 2003 apps from the quick launch bar: Access, Excel, Outlook, Powerpoint and Word. I used VB.NET 2003. Today, I tried to open an extant Word document. I tried two docs, one had already existed, the other was just created anew on...
13
2477
by: a.zeevi | last post by:
free() multiple allocation error in C ==================================== Hi! I have written a program in C on PC with Windows 2000 in a Visual C environment. I have an error in freeing multiple allocation as follows: 1. I allocated an array of pointer. 2. I Read line by line from a text file. 3. I allocated memory for the read line.
2
9055
by: Alan T | last post by:
In my C# application, I want to open a Word document using the code from the Help: using Microsoft.Office.Interop.Word; object readOnly = true; object fileName = @"C:\Test\NewDocument.doc"; this.Application.Documents.Open(ref fileName, ref missing, ref readOnly, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing,
0
1847
by: robert.waters | last post by:
Hello, When executing DoCmd.TransferSpreadsheet to an .xls file that's being used as a datasource for a Word mail merge document, if that Word document is currently open, the TransferSpreadsheet action fails with an 'Error 0'. I have tried different methods of trapping that error, and I still cannot get my app to indicate that the user should exit Word: I have tried disabling the error handler before DoCmd is called, looking for an Err...
5
1563
by: Goldenlamp | last post by:
I've getting an error: Parse error: syntax error, unexpected $end on line 64 Can someone see were I type it wrong. Thanks.. <?php require("database.inc.php"); {connectDatabase();
11
5025
by: fniles | last post by:
One of our application uses VB6 and Access97 database. Another application uses VB.NET 2005. This morning for about 15 seconds when the application tries to read either a query or a table from the database, in in both VB6 and VB.NET applications, I got the error "The Microsoft Jet database engine cannot find the input table or query 'myTable'. Make sure it exists and that its name is spelled correctly." Also, I got the error "The...
0
8983
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9528
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9359
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9310
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9236
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8235
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6792
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4863
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3298
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.