Advertisement Jump to content
Sign in to follow this  

[web] Opening word and excel documents with ASP

This topic is 4377 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I know ASP is old and i should move to ASP .net, but i need to open word and excel documents with the relative application (thus not within IE). Can you help me ? Thanks

Share this post

Link to post
Share on other sites
Well, i found a way to do it, here is the code:

Sub OpenWorkbook(strLocation)
Set objExcel = CreateObject("Excel.Application")
objExcel.Visible = true
objExcel.Workbooks.Open strLocation
objExcel.UserControl = true
End Sub

It works, however there is still an issue: when i run the script from an asp page, i'm prompted (each time) to enter user/password. I do that, and i also check the 'remember password' box, but every time i get the same user/password prompt request...

This issue happens also when editing web sites with Frontpage, it doesn't remember passwords. I don't think there is anything wrong with this server, because i experimented the same problem also on other Windows 2003 servers.
Any idea ?

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!