Skip to main content
 
developerWorks
AIX and UNIX
Information Mgmt
Lotus
New to Lotus
Products
How to buy
Downloads
Live demos
Technical library
Training
Support
Forums & community
Events
Rational
Tivoli
WebSphere
Java™ technology
Linux
Open source
SOA and Web services
Web development
XML
My developerWorks
About dW
Submit content
Feedback



developerWorks  >  Lotus  >  Forums & community  >  IBM Lotus Notes/Domino 8.5 Forum (includes Lotus Notes Traveler)

IBM Lotus Notes/Domino 8.5 Forum (includes Lotus Notes Traveler)

Sign in to participate
Subject: Excel Automation object error(213)
Feedback Type: Problem
Product Area: Domino Server
Technical Area: Application Development
Platform: Windows
Release: 8.5.1
Reproducible: -Reproducibility-

Bit worried about this one and I've looked around and found lots of posts with similar problems, but not many of them have fixes.

Windows 2008 server and Domino running as a service (as it should). I've installed Office 2007 on the server to run an export. The code is executed from a web browser, but throws the following error when it tries to save the excel spreadsheet.

"OLE: Automation object error(213)"

It works fine when I try to run it from a Lotus Notes Client locally.

I've changed the Runtime security level to "2. Allow restricted operations without success", "1. Do not allow restricted operations" does not work at all, it fails much earlier and although I have tried using "3. Allo restricted operations with full administration rights", I don't think it's necessary, so have left it on "2. Allow restricted operations".

Code is as follows:

Dim session As NotesSession
Dim db As NotesDatabase
Dim doc As NotesDocument

Set session = New NotesSession
Set db = session.currentDatabase

Dim myobject As Variant
Dim mysheet As Variant

Set myobject = createObject("Excel.application.12") ' 12 for version 12 (2007) otherwise just Excel.application

myobject.workbooks.add

Set mysheet = myobject.workbooks(1).Worksheets(1)

mysheet.name = "Review"

mysheet.cells(2, 5).value="Transfer to Excel"
mysheet.cells(2, 5).Font.Size=14
mysheet.cells(2, 5).Font.ColorIndex=3
mysheet.cells(2, 5).Font.Bold = True

Dim fmlaval As Variant

mysheet.cells.Columns.autofit

'Debugging shows that it fails on the next line
mysheet.SaveAs "C:\Downloads\test","56" ' "56" means 97 to 2003 version

myobject.visible=True

myobject.quit
Set myobject = Nothing ' free up the memory


Feedback number WEBB84N23H created by Ross Chaplin on 04/18/2010

Status: Open
Comments:

Excel Automation object error(213) (Ross Chaplin 18.Apr.10)
. . Security and Domino access to Excel... (Ross Chaplin 18.Apr.10)
. . . . Excel File Format (Ross Chaplin 19.Apr.10)
. . . . . . Drowning here... (Ross Chaplin 22.Apr.10)
. . . . . . . . Similar issues (Dave Navarre 12.Jun.12)
. . . . . . . . . . Mine was far easier (Dave Navarre 14.Jun.12)
. . This worked for me (Beppe Bonetti 29.Apr.10)




Printer-friendly

Search this forum


Sign In or Register

 Sign In or Register
Sign in
Forgot your password?
Forgot your user name?
Create new registration

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS
More Lotus RSS feeds

Resources

 Resources
Forum use and etiquette
Native Notes Access
Web site Feedback

Lotus Support


 Lotus Support
IBM Support Portal - Lotus software
Lotus Support documents
Lotus support by product
Lotus support downloads
Lotus support RSS feeds

Wikis

 Wikis
IBM Composite Applications
IBM Mashup Center
IBM Connections
IBM Docs
IBM Forms
IBM Mobile Connect
IBM Sametime
IBM SmartCloud for Social Business
IBM Web Experience Factory
Lotus Domino
Lotus Domino Designer
Lotus Expeditor
Lotus Foundations
Lotus iNotes
Lotus Instructor Community Courseware
Lotus Notes
Lotus Notes & Domino Application Development
Lotus Notes Traveler
Lotus Protector
Lotus Quickr
Lotus Symphony
IBM Web Content Manager
WebSphere Portal

Lotus Forums


 Lotus Forums
Notes/Domino 9.0
Notes/Domino 8.5 + Traveler
Notes/Domino XPages development forum
Notes/Domino 8
Notes/Domino 6 and 7
IBM Connections
IBM Forms
IBM Mobile Connect
IBM Sametime
IBM SmartCloud Notes
IBM Web Content Manager
Lotus Enterprise Integration
Lotus Protector
Lotus Quickr
Lotus SmartSuite