473,801 Members | 2,336 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Can't able to Open Word File in Client Machine which is Stored in Server Machine

1 New Member
Hi,

Im having word document in the Server Machine. While im trying to open the file in Client Machine file is opening in Server only. I need to open in the client only. This is an ASP.NET project done in VB.NET.

The Code i used to Open the file
---------------------------------------------
Dim oWordApplic As New Word.Applicatio nClass
Dim oDoc As Word.Document
Dim strFileName As String = ConfigurationSe ttings.AppSetti ngs("ServerWord Docu") + ReportName + ".doc"
Dim missing As Object = System.Reflecti on.Missing.Valu e
oWordApplic.Vis ible = True
oDoc = oWordApplic.Doc uments.Open(str FileName, missing, False, missing, missing, missing, missing, missing, missing, missing, missing, isVisible, missing, missing, missing, missing)
oDoc.Activate()
----------------------------------------------------------------

Another Code I Used is Hyperlink. Just i give the link to hyperlink but its opening in readonly format. so i cant able to do any modification. Because i have to save the file in the server.

HyperLink1.Text = Name + ".doc"
HyperLink1.Navi gateUrl = ConfigurationSe ttings.AppSetti ngs("WordDocu") + Name + ".doc"
----------------------------------------------------------------

Another type i Checked its also opening in readonly.

Dim filename As String = ConfigurationSe ttings.AppSetti ngs("WordDocu") + ReportName + ".doc"
Response.Conten tType = "applicatio n/ms-word"
Response.AddHea der("ContentDis position", "attachment;fil ename")
Response.WriteF ile(filename)


Give me the solution i need it very urgent...

Thanks in advance
Senthil V.
Jun 9 '06 #1
0 2416

Sign in to post your reply or Sign up for a free account.

Similar topics

4
27229
by: Arne | last post by:
Hi, Probably an easy answer to this, but I have not been able to figure it out. How can I find the IP-address of the machine that my Java-program is running on ? Could not find any methods in the InetAddress class that does this. The closest I got was the getLocalHost() which will return the IP-address representing the loopback address (usually 127.0.01, isn't it ?). Any ideas ?
7
18705
by: Jack | last post by:
Hello, I wrote this code: <%@ LANGUAGE=VBScript %> <SCRIPT LANGUAGE=JavaScript> function CustomerNameChange() { var forwarding_dbX; var CustomerTableX; set forwarding_dbX = Server.CreateObject("ADODB.Connection"); forwarding_dbX.Open "Forwarding";
26
15315
by: Don | last post by:
I'm writing an html page with some JavaScript that reads a web page into a client-side temp file, then reformats it, then submits that same file as a URL to the browser for display, via "locate.replace". I can do all this if the html page containing the script originates on the client machine, but don't know how to get access to a client-side temp file when the same html page containing the script is on a web host. How do I get access...
10
6050
by: MHenry | last post by:
Hi, We were going merrily along for 6 years using this database to record all client checks that came into our office, including information about what the checks were for. Suddenly, network computers cannot access the database. The message is...
6
2188
by: gizmo | last post by:
I have a requirement to initiate more than one instance of an application using the filenames. (the example below will start two instances of MS Word). My problem is that I need to kill each instance individually, but this does not appear possible using the Process object. When I run the example below the process object "p" can be viewed using Quick Watch however process object p2 is displayed as undefined, with the added affect of not...
0
1293
by: Santhosh.A.N | last post by:
Hi, I have a problem to be solved yet. Following is the problem: I have a MSProject saved in SQLServer using ODBC, which automatically generates tables relevant to data. My requirement is to open this project in client machine in MSProject application as read or readwrite file. I tried using "Microsoft Project 9.0 object library" to create an instance in some button click event in server side. It gives the following error: "Call was Rejected...
24
2983
by: Randall Arnold | last post by:
I know how to use MSHTML to grab the innerhtml from an html web page, but what if I want to look at elements of a rendered aspx page? Is there any way to do this using the MSHTML DOM object? Thanks, Randall Arnold
6
4904
by: scottyman | last post by:
I can't make this script work properly. I've gone as far as I can with it and the rest is out of my ability. I can do some html editing but I'm lost in the Java world. The script at the bottom of the html page controls the form fields that are required. It doesn't function like it's supposed to and I can leave all the fields blank and it still submits the form. Also I can't get it to transfer the file in the upload section. The file name...
1
1603
by: pronerd | last post by:
Ok, I am looking for way to have a user download a file, and have it open the apprpreate client side application. For instance lets say a user is downloading an MS Word file. I want the user to get the dia log box asking them if they want to open, or save the file. If they click open I want the file to open in MS Word, but outside of the browser instead of inside the current frame. I am aware of the options for playing with the MIME...
0
9697
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9555
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10291
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10049
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6827
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5616
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4156
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3771
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2956
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.