kbrown2974
04-09-2004, 09:15 AM
I am attempting to open a spreadsheet thru ASP. I think it opens it because it errors out on a different line than the open. I would like it to pop-up in the window so I can actually see it. The code I have so far is below:
<%
Dim fso
Dim act
Dim xlsit
Dim xlsbook
thepath = "n:\outbound\mortcamp\reports\mortout.xls"
set fso = createobject("Excel.Application")
fso.visible = true
fso.UserControl = true
set act = fso.Workbooks.Open("n:\outbound\mortcamp\reports\mortout.xls")
set xlsbook = act.workbooks.add
act.close true
fso.quit
set fso = nothing
set act = nothing
set xlsit = nothing
%>
<%
Dim fso
Dim act
Dim xlsit
Dim xlsbook
thepath = "n:\outbound\mortcamp\reports\mortout.xls"
set fso = createobject("Excel.Application")
fso.visible = true
fso.UserControl = true
set act = fso.Workbooks.Open("n:\outbound\mortcamp\reports\mortout.xls")
set xlsbook = act.workbooks.add
act.close true
fso.quit
set fso = nothing
set act = nothing
set xlsit = nothing
%>