PC Review


Reply
Thread Tools Rate Thread

Automation error for proecssing few xla files

 
 
Sachin
Guest
Posts: n/a
 
      8th Jul 2009
hi
i am trying to process xla file using C# interops
For a perticular file i am facing a problem when i tried open the file it
throws an error window "opening the VBA project in this file requires a
component that is not currently installed. This file will be opened without
VBA project"

for other few files i get error window "hlib32.dll file not found"

Does any have an idea what could be the reason .

What is the best way to avoid such pop up windows coming because i want to
run the program unattended by user .

Thanks in advance
Sachin
 
Reply With Quote
 
 
 
 
Patrick Molloy
Guest
Posts: n/a
 
      8th Jul 2009

presume you're instantiating excel first. you could try running
Application.DisplayAlerts = False
but I don't know about that dll issue, sorry.

"Sachin" <(E-Mail Removed)> wrote in message
news:1D7DCAAC-A180-4351-B091-(E-Mail Removed)...
> hi
> i am trying to process xla file using C# interops
> For a perticular file i am facing a problem when i tried open the file it
> throws an error window "opening the VBA project in this file requires a
> component that is not currently installed. This file will be opened
> without
> VBA project"
>
> for other few files i get error window "hlib32.dll file not found"
>
> Does any have an idea what could be the reason .
>
> What is the best way to avoid such pop up windows coming because i want to
> run the program unattended by user .
>
> Thanks in advance
> Sachin


 
Reply With Quote
 
Sachin
Guest
Posts: n/a
 
      9th Jul 2009


i have tried display alert setting false but that does not help

excelApplication = new Microsoft.Office.Interop.Excel.ApplicationClass();
excelApplication.DisplayAlerts = false;
excelApplication.DisplayClipboardWindow = false;

may be there any any pther work around to get rid of this window ..

sachin

"Patrick Molloy" wrote:

> presume you're instantiating excel first. you could try running
> Application.DisplayAlerts = False
> but I don't know about that dll issue, sorry.
>
> "Sachin" <(E-Mail Removed)> wrote in message
> news:1D7DCAAC-A180-4351-B091-(E-Mail Removed)...
> > hi
> > i am trying to process xla file using C# interops
> > For a perticular file i am facing a problem when i tried open the file it
> > throws an error window "opening the VBA project in this file requires a
> > component that is not currently installed. This file will be opened
> > without
> > VBA project"
> >
> > for other few files i get error window "hlib32.dll file not found"
> >
> > Does any have an idea what could be the reason .
> >
> > What is the best way to avoid such pop up windows coming because i want to
> > run the program unattended by user .
> >
> > Thanks in advance
> > Sachin

>

 
Reply With Quote
 
Sachin
Guest
Posts: n/a
 
      9th Jul 2009


the work around could be while opening the excel workbook objEditable is
set to true instead of false ..

"Sachin" wrote:

>
> i have tried display alert setting false but that does not help
>
> excelApplication = new Microsoft.Office.Interop.Excel.ApplicationClass();
> excelApplication.DisplayAlerts = false;
> excelApplication.DisplayClipboardWindow = false;
>
> may be there any any pther work around to get rid of this window ..
>
> sachin
>
> "Patrick Molloy" wrote:
>
> > presume you're instantiating excel first. you could try running
> > Application.DisplayAlerts = False
> > but I don't know about that dll issue, sorry.
> >
> > "Sachin" <(E-Mail Removed)> wrote in message
> > news:1D7DCAAC-A180-4351-B091-(E-Mail Removed)...
> > > hi
> > > i am trying to process xla file using C# interops
> > > For a perticular file i am facing a problem when i tried open the file it
> > > throws an error window "opening the VBA project in this file requires a
> > > component that is not currently installed. This file will be opened
> > > without
> > > VBA project"
> > >
> > > for other few files i get error window "hlib32.dll file not found"
> > >
> > > Does any have an idea what could be the reason .
> > >
> > > What is the best way to avoid such pop up windows coming because i want to
> > > run the program unattended by user .
> > >
> > > Thanks in advance
> > > Sachin

> >

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Run-Time error '-2147417848 (80010108)': Automation error The object invoked has disconnected from its clients SeangSTM Microsoft Excel Programming 0 28th Apr 2006 07:46 PM
pdf files - automation =?Utf-8?B?TWlhcGxhY2lkdXM=?= Microsoft Access VBA Modules 0 15th Apr 2005 07:36 PM
Automation - CPL files =?Utf-8?B?UGF1bA==?= Microsoft Dot NET Framework Forms 3 7th Apr 2005 02:02 PM
Getting at ppt files without ole automation =?Utf-8?B?UV9KRDIwMDQ=?= Microsoft Powerpoint 0 14th Jan 2005 05:19 PM
Runtime Error 2147221231 automation error ClassFactory can't supply requested cl Elaine Windows XP General 0 4th Sep 2003 04:11 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:44 PM.