Automation server crashing excel

B

Badger

Hey,

I've an automated report generation application built using word,
excel and sql server. Essentially, it uses MS Word as a WYSIWYG
editor, with excel underneath it formatting charts and tables and the
data is sourced from SQL Server.

The problem is that on one PC in the office, the process falls over.
It always falls over at the same point in the excel application,
however, if i run the routine directly in excel (i.e. not from word
via the automation server) it works fine. It throws a vba error then
excel crashes and closes. The error is due to an ado recordset not
being populated - although there's nothing wrong with the query. It
works fine on all other PCs in the office.

I'm trying to nail it down to something less dramatic than
reinstalling word / excel. I've had a similar scenario many years ago
writing a massive Word template application. Every now and then a
registry key would become corrupt and need recreating. Unfortunately
that was six years ago and i've no idea what the key was!

I've tried recreating normal.dot, that didn't cut it.

Anyone seen anything similar / got any suggestions?

The application flow roughly runs:

1. user runs up a new word document from a template
2. gets presented with a form, enters some parameters and hits go.
3. Word creates an instance of excel, opens a new excel workbook based
on a template
4. Executes a procedure in the excel workbook which creates a
connection to sql server and carries out various bits of data access.
5. The results of that data access are applied to the tables and
charts in excel.
6. Word grabs the updated content it needs from excel.
7. Cleans up connections and closes excel.
8. Returns control to the user.
 
C

Cindy M.

Hi Badger,
I'm trying to nail it down to something less dramatic than
reinstalling word / excel. I've had a similar scenario many years ago
writing a massive Word template application. Every now and then a
registry key would become corrupt and need recreating. Unfortunately
that was six years ago and i've no idea what the key was!
Probably the DATA key, although I can't see anything in your
(admittedly brief) description that should affect the Data key.
The problem is that on one PC in the office, the process falls over.
It always falls over at the same point in the excel application,
however, if i run the routine directly in excel (i.e. not from word
via the automation server) it works fine. It throws a vba error then
excel crashes and closes. The error is due to an ado recordset not
being populated - although there's nothing wrong with the query. It
works fine on all other PCs in the office.
It's really impossible to say why without seeing any of the code. But
why not test for the problem with the recordset before letting the
code get to the point of the crash? (I assume this is in point (4) of
your application flow?)

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question
or reply in the newsgroup and not by e-mail :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top