Posted on: 4/19/2014 2:53:20 AM | Views : 475

I'm trying to call a vbs to create a excel file in local via asp.net website. But when i click button to call the vbs in local, the vbs able to create a excel file. But when i upload the asp source code into inetpub/wwwroot folder and type localhost/website in the browser and click the button again, the browser always loading and nothing come out? Why? can anyonw help me on this. Below is my vbs and asp.net code behind.. Thx.

VBS: strFileName = "D:\test.xls" Set objExcel = CreateObject("Excel.Application") objExcel.Visible = True Set objWorkbook = objExcel.Workbooks.Add() objWorkbook.SaveAs(strFileName) objExcel.Quit ASP.Net Code Behind Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click Dim scriptProc As New System.Diagnostics.Process scriptProc.StartInfo.FileName = "excel.vbs" scriptProc.StartInfo.WorkingDir ...

Go to the complete details ...