Hiiiii,
How i can open file (word,excel etc) using vb.net (web base)..
But not using response.redirect(namefile)...
Please help me..
Thanks
Jebat
Hiiiii,
How i can open file (word,excel etc) using vb.net (web base)..
But not using response.redirect(namefile)...
Please help me..
Thanks
Jebat
Open file
marebear12
I think you need to restate your problem.
Are you trying to open an excel file that is located on a web page using a winforms application (VB)
Are you trying to open an excel file on a file share using a web application (ASP)
The answer to those questions determine which forum you want to use.
Rahul Singla
Yes I know...but i already send my question to www.asp.net forum...
i not yet got solution for my problem.... i think in this forum i can get solution for my problem...
thanks...
ajpurkiss
chongqing
Not for VB Script of Javascript questions you wont.
These forums are designed for VB.NET questions and the suggestions on alternative are more likely to be correct for ASP / ASP.NET related issues.
Chrisull
If your asking how to open word/excel files from a web page - then using process.start wont work as it will open the file on the server and not on the client machine which is what I assume you are trying to achieve.
Your probably better asking this question on the ASP.NET forums
Forums.asp.net
kats
maybe you want this...
Diagnostics.Process.Start(
"C:\Example.doc")salah chebaro
If he's trying to open an excel file locally using a Web application then process.start will NOT work as this will work on the server which does not contain the file. Similar issue to if you use msgbox in a web application it causes the dialog to appear on the server not the client.
Thats said - if he's doing web app development and using VB.NET then he is creating an ASP/ASP.NET application and the best places to ask for advice on web application development using .NET is forums.asp.net These are microsoft forums for web development using the .NET development tools.
There are many different issues with web based development as web development uses a stateless model, whereas windows application can maintain state. In this case the web page with the VB Code is actually running on the server and not on the client. So in order to have things running on the client you need to take some different approaches. By contrast if you are writing windows applications unless you do otherwise most applications are running on the client machine.
So If this is a web application - I would absolutely re-iterate that the best place to obtain answers are the asp.net forums. These are for people creating web applications using .NET (of which VB.NET is one) and will provide to best answers relevent to web development.
Its just many ways of doing things in windows dont work the same for web apps.
Harkernator
Hiiii,
In my program i using Vb.Net, not Asp/Asp.net.... so i can send my problem in this forum....
I hope you understand ,
Thanks...
Jebat...
Metallicox
You have to write a script in Javascript or VBScript to handle this. ASP uses server sided scripting, and you want client sided scriptiong (HTA).
You'd run something like this for ASP
<script language=vbscript runat=server>
</script>
But you need to remove the "runat=server" part.
Then do a Dim App = GetObject("FileSystemObject") or something like that. I suggest visiting www.visualbasicscript.com for better forums on client-side scripting.