We help IT Professionals succeed at work.
Get Started

Export from Lotus Domino to Excel from Web Application

Sam654 asked
Last Modified: 2013-11-16
I'm trying to run an agent from the web to export data to Excel. I've installed Excel on the server from MS Office 2000, I can install excel from office 2k7 if it's recommended.

Users could be using IE, FF or a browser on an MAC.

The server is giving me the following error on the SaveAs line-

Microsoft Excel: The file could not be accessed. Try one of the following:
Make sure the specified folder exists.
Make sure the folder that contains the file is not read-only.
Make sure the filename does not contain any of the following characters: < > ? [ ] : or *.
Make sure the file/path doesn't contain more than 218 characters.

Code below. I've seen a lot of posts around this subject, either they are for the notes client or not Script based, but none seem to provide a solution for the error that I'm having.

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")
Set mysheet = myobject.workbooks(1).Worksheets(1)
mysheet.name = "Review"
mysheet.cells(2, 5).value="Transfer to Excel"
mySheet.SaveAs "C:\\test\\test.xls"

Set myobject = Nothing	' free up the memory

Open in new window

Watch Question
This problem has been solved!
Unlock 1 Answer and 8 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE