472,357 Members | 1,937 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,357 software developers and data experts.

Error with open word doc.

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

Word.ApplicationClass WordApp = new Word.ApplicationClass
();

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

// the way to handle parameters
you don't care about in .NET
object missing =
System.Reflection.Missing.Value;

// 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.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);
While executing, Wordapp.Documents.Open..it stops with the
following message :

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

Additional information: QueryInterface for interface
Word._Application failed.

Can anyone help to overcome the above error message.

Thanks
sudha
Nov 15 '05 #1
8 3029
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*******@hotmail.com> wrote in message
news:05****************************@phx.gbl...
Hi,
To open a word doc from c#, i use the following code :

Word.ApplicationClass WordApp = new Word.ApplicationClass
();

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

// the way to handle parameters
you don't care about in .NET
object missing =
System.Reflection.Missing.Value;

// 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.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);
While executing, Wordapp.Documents.Open..it stops with the
following message :

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

Additional information: QueryInterface for interface
Word._Application 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*******@hotmail.com> wrote in message
news:05****************************@phx.gbl...
Hi,
To open a word doc from c#, i use the following code :

Word.ApplicationClass WordApp = new Word.ApplicationClass ();

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

// the way to handle parameters
you don't care about in .NET
object missing =
System.Reflection.Missing.Value;

// 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.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);
While executing, Wordapp.Documents.Open..it stops with the following message :

A first chance exception of
type 'System.InvalidCastException' occurred in AdoDemo1.exe
Additional information: QueryInterface for interface
Word._Application 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*******@discussions.microsoft.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*******@hotmail.com> wrote in message
news:05****************************@phx.gbl...
Hi,
To open a word doc from c#, i use the following code :

Word.ApplicationClass WordApp = new Word.ApplicationClass ();

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

// the way to handle parameters
you don't care about in .NET
object missing =
System.Reflection.Missing.Value;

// 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.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);
While executing, Wordapp.Documents.Open..it stops with the following message :

A first chance exception of
type 'System.InvalidCastException' occurred in AdoDemo1.exe
Additional information: QueryInterface for interface
Word._Application 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**************@TK2MSFTNGP09.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*******@discussions.microsoft.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*******@hotmail.com> wrote in message
news:05****************************@phx.gbl...
> Hi,
> To open a word doc from c#, i use the following code :
>
> Word.ApplicationClass WordApp = new

Word.ApplicationClass
> ();
>
> // give any file name of your
> choice.
> object fileName = "C:\\test.doc";
> object readOnly = false;
> object isVisible = true;
>
> // the way to handle parameters
> you don't care about in .NET
> object missing =
> System.Reflection.Missing.Value;
>
> // 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.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);
>
>
> While executing, Wordapp.Documents.Open..it stops with

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

AdoDemo1.exe
>
> Additional information: QueryInterface for interface
> Word._Application 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**************@TK2MSFTNGP09.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*******@discussions.microsoft.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*******@hotmail.com> wrote in message
> >news:05****************************@phx.gbl...
> >> Hi,
> >> To open a word doc from c#, i use the following code : > >>
> >> Word.ApplicationClass WordApp = new
> Word.ApplicationClass
> >> ();
> >>
> >> // give any file name of your
> >> choice.
> >> object fileName = "C:\\test.doc";
> >> object readOnly = false;
> >> object isVisible = true;
> >>
> >> // the way to handle parameters
> >> you don't care about in .NET
> >> object missing =
> >> System.Reflection.Missing.Value;
> >>
> >> // 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.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);
> >>
> >>
> >> While executing, Wordapp.Documents.Open..it stops with > the
> >> following message :
> >>
> >> A first chance exception of
> >> type 'System.InvalidCastException' occurred in
> AdoDemo1.exe
> >>
> >> Additional information: QueryInterface for interface > >> Word._Application 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.Office.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.InvalidCastException' occurred in
AdoDemo1.exe
Additional information: QueryInterface for
interface Word._Application 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**************@TK2MSFTNGP09.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*******@discussions.microsoft.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*******@hotmail.com> wrote in message
> >news:05****************************@phx.gbl...
> >> Hi,
> >> To open a word doc from c#, i use the followingcode : > >>
> >> Word.ApplicationClass WordApp = new
> Word.ApplicationClass
> >> ();
> >>
> >> // give any file name of your
> >> choice.
> >> object fileName = "C:\\test.doc";
> >> object readOnly = false;
> >> object isVisible = true;
> >>
> >> // the way to handle parameters
> >> you don't care about in .NET
> >> object missing =
> >> System.Reflection.Missing.Value;
> >>
> >> // 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.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);
> >>
> >>
> >> While executing, Wordapp.Documents.Open..it stopswith > the
> >> following message :
> >>
> >> A first chance exception of
> >> type 'System.InvalidCastException' occurred in
> AdoDemo1.exe
> >>
> >> Additional information: QueryInterface forinterface > >> Word._Application 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.CreateInstance(Type.GetTypeFromProgID("W ord.Application", true) );
Word.Application app = (Word.Application) wordApp;

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

Regards,
Aravind C

"sudha" <an*******@discussions.microsoft.com> wrote in message
news:04****************************@phx.gbl...
Aravind,
i undid office XP PIA with
gacutil /u Microsoft.Office.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.InvalidCastException' occurred in
AdoDemo1.exe
Additional information: QueryInterface for
interface Word._Application 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**************@TK2MSFTNGP09.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*******@discussions.microsoft.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*******@hotmail.com> wrote in message
> >news:05****************************@phx.gbl...
> >> Hi,
> >> To open a word doc from c#, i use the following

code :
> >>
> >> Word.ApplicationClass WordApp = new
> Word.ApplicationClass
> >> ();
> >>
> >> // give any file name of your
> >> choice.
> >> object fileName = "C:\\test.doc";
> >> object readOnly = false;
> >> object isVisible = true;
> >>
> >> // the way to handle parameters
> >> you don't care about in .NET
> >> object missing =
> >> System.Reflection.Missing.Value;
> >>
> >> // 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.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);
> >>
> >>
> >> While executing, Wordapp.Documents.Open..it stops

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

interface
> >> Word._Application 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.InvalidCastException' occurred in AdoDemo1.exe

Additional information: Specified cast is not valid.

when it exec : Word.Application app = (Word.Application)
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.CreateInstance(Type.GetTypeFromProgID ("Word.Application", true) );Word.Application app = (Word.Application) wordApp;

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

Regards,
Aravind C

"sudha" <an*******@discussions.microsoft.com> wrote in messagenews:04****************************@phx.gbl...
Aravind,
i undid office XP PIA with
gacutil /u Microsoft.Office.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.InvalidCastException' occurred in
AdoDemo1.exe
Additional information: QueryInterface for
interface Word._Application 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**************@TK2MSFTNGP09.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*******@discussions.microsoft.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*******@hotmail.com> wrote in message
>>> > >news:05****************************@phx.gbl...
>>> > >> Hi,
>>> > >> To open a word doc from c#, i use the following >code :
>>> > >>
>>> > >> Word.ApplicationClass WordApp = new
>>> > Word.ApplicationClass
>>> > >> ();
>>> > >>
>>> > >> // give any file name of your
>>> > >> choice.
>>> > >> object fileName = "C:\\test.doc";
>>> > >> object readOnly = false;
>>> > >> object isVisible = true;
>>> > >>
>>> > >> // the way to handle parameters
>>> > >> you don't care about in .NET
>>> > >> object missing =
>>> > >> System.Reflection.Missing.Value;
>>> > >>
>>> > >> // 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.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);
>>> > >>
>>> > >>
>>> > >> While executing, Wordapp.Documents.Open..it stops >with
>>> > the
>>> > >> following message :
>>> > >>
>>> > >> A first chance exception of
>>> > >> type 'System.InvalidCastException' occurred in
>>> > AdoDemo1.exe
>>> > >>
>>> > >> Additional information: QueryInterface for
>interface
>>> > >> Word._Application 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
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...
6
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...
0
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...
2
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...
13
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...
2
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"; ...
0
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...
5
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
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...
2
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
1
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. header("Location:".$urlback); Is this the right layout the...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and credentials and received a successful connection...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
1
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web server and have made sure to enable curl. I get a...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...

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.