Browser opening file twice

D

David C

I have the code below that I call from onclick attribute I am adding to a
LinkButton. It works perfect if I use Application.Word, etc. but when I use
Application.Excel it opens the file name twice, once in regular mode and
once in "read-only". Can anyone see what I am doing wrong? Thanks.
David

function openExcel()
{
var pause = 0;
var xlDialogFileOpen = 80;
var xlApp = new ActiveXObject("Excel.Application");
xlApp.Visible = 'True';
var wb = xlApp.Workbooks;
wb.Open('N:\\FileDocs\\File092180\\0001Contract\\Fileroom Company
List.xls');
}
 

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

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,239
Members
46,827
Latest member
DMUK_Beginner

Latest Threads

Top