I copied this from another class. To be honest I have no clue why the
variant is required. I can try removing it. As I said though it _does_ work
on our other systems!
Regards,
Matt Benic
Axapta Developer
UTi Sun Couriers Division
"The universal aptitude for ineptitude
makes any human accomplishment an incredible miracle."
- Col. John P. Stapp
-----Original Message-----
From: Don Price [mailto:[EMAIL PROTECTED]
Sent: 04 October 2004 05:05 PM
To: [EMAIL PROTECTED]
Subject: RE: [development-axapta] Wierd Excel COM behavior
Hi Matt,
Why are you passing in the variant? I took a quick look at one of our
classes and we just call the add with no parms. Maybe Office 2003
requires your parm?
Don
-----Original Message-----
From: Matt Benic [mailto:[EMAIL PROTECTED]
Sent: Monday, October 04, 2004 9:27 AM
To: Axapta Dev
Subject: [development-axapta] Wierd Excel COM behavior
Hi there,
We have a report that is explicitly written to an excel file (rather
than
using the query engine). This report has been running fine until we made
some changes last week. Now it works on our dev and test systems, but
crashes on our live system. It fails on addition of a workbook to a
workbooks object:
in class CreateCreditNoteCustTransExcel that extends
SysExcelApplication_2000:
//Get workbooks object from the app
workbooks = application.workbooks();
//Add a new workbook
variant.int(-4167);
workbook = workbooks.add(variant); <-- crashes here
Any idea why this would happen? The crash is so bad that the client
crashes,
but does not happen if the client is connecting to our dev or test
system. I
cannot debug into this line and there is no useful output (just the
error
message below):
"Your Navision Axapta session cannot continue due to a fatal error
condition. An Unrecoverable error occurred while the Object Server tried
to
process the last request. Please start again and retry the operation. If
the
problem persists please notify your Navision Axapta administrator."
There is nothing in the log folder or in the app or sys event logs.
Regards,
Matt Benic
Axapta Developer
UTi Sun Couriers Division
"The universal aptitude for ineptitude
makes any human accomplishment an incredible miracle."
- Col. John P. Stapp
Yahoo! Groups Links
Yahoo! Groups Links
| Yahoo! Groups Sponsor | |
|
|
Yahoo! Groups Links
- To visit your group on the web, go to:
http://groups.yahoo.com/group/development-axapta/
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

