Web Forms :: Open A Word Doc File In MS Word From Website?
Aug 26, 2010
My requirement is : I have to open a word document in Microsoft word from my web application and the word document is stored in the server location.
In javascript i wrote a code to open the word document like below.
var dsWordApp = new ActiveXObject("Word.Application");
var WordDoc = dsWordApp.Documents.Open(FileName)
Using above script i am able to open the local word doc files but i am unable to open the server side word doc file.
how to open a server side word doc fie in MSword.
View 1 Replies
Similar Messages:
Jan 11, 2011
I have a word document which opens in a web browser using ASP.NET 2.0 this is the code:
[Code]....
THIS WORKS, PROMPTING THE USER WITH "OPEN" "SAVE" "CANCEL" OR SOME USERS WITH "SAVE" "CANCEL" DEPENDING ON USER INTERNET SECURITY SETTING. BUT FOR SECURITY ISSUES, MY BOSS WANT THIS WORD DOCUMENT TO BE OPENED IN WORD PROGRAM. (MICROSOFT WORD 93,97 ETC) IS THIS POSSIBLE....? OFCOURSE SAVING THE FILE IS OKAY, JUST OPENING THE DOCUMENT SHOULD BE NOT BROWSER.
View 3 Replies
Aug 21, 2010
My world file is place on server . how i will open it through click event. is there any way to open in html or i wil call word application.
i tried javascript, importing com library but faild'
at java script while i create activex object exception arise.
how to open word files in asp.net
i use ms office 2007
View 4 Replies
Jan 22, 2010
I open a mht file with the streamreader and I do some handling with the file.
Then I would like te open this content with word (200,2003,2007).
What's the correct content type to use for the Response.WriteFile method ?
As normally a mht file has content type multipart/related ...
The code i use is:
[Code]....
View 2 Replies
Apr 14, 2010
I have a MS Word document saved in the web server and I want to open it without MS Office Interop, from my web page.
What is the best possible way to achieve it?
View 13 Replies
May 11, 2010
i have an aspx page with one button on it the name of the page is Default.aspx
i have a physical microsoft office word file in the c drive
what i want to do is that when i press a button i open a microsoft office word located on the c drive then i add some text to it using c# code
then i want to open the file (that i edited and located in memory) in mircosoft office word to see the text that i have added
everything works fine but when i press the button i get a prompt that says do you want to open the file or save it .
questions:
so how can i directly open the file (located in memory) in microsoft office word without this prompt
also if i choose open from the prompt the file opens in the read only mode and the title of the file in the microsoft word become the name of the aspx page which is Default.aspx
so what is going wrong here
[Code]....
View 2 Replies
Jul 17, 2010
I am using below code to generate word document using assp.net/c#.net, please tell me where i am missing it is generating word file and all contents are their.but problem is that when i open it it gives me error:"The Office Open XML file filename.doc cannot be opened because there are problems with the contents"
and after clicking ok i get my required file.remove this error.
in error details:The file is corrupt and cannot be opened after it again gets a error message:"word found unreadable content in myfile.do you want to recover the contents of this document? if you trust the source of ths document,click yes"
using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Office;
[code]...
View 1 Replies
Aug 28, 2010
In my application users upload their word document and user has been given an option to preivew the uploaded document. Inorder to preview the document i put the following code in my page_load event
div1.InnerHtml = "<iframe name='iframe4' src='DocumentUuploaded/report.doc ' target='iframe4' frameborder='no' height='500' scrolling='no' width='800'></iframe>";
The problem is it is asking Do you want to open or save this file. How can i get rid of this dialouge box
View 3 Replies
Mar 25, 2011
I want export gridview data to existing word doc. The word doc is avaliable in my pc.
Is it possible to export data?
View 4 Replies
Feb 23, 2010
How to open Pdf,word and CHM on web broswer ?
View 4 Replies
Sep 23, 2010
I open Microsoft Word through ASP.NET , when I load by visual studio 2008 works well.but when I put my site in my IIS folder and access the site through Internet Explorer and click the button nothing happens.Don't happen anything. Why my code :
wdApp =
New
Microsoft.Office.Interop.Word.Application
View 6 Replies
Mar 4, 2010
I have a page with two textboxes (one for english and one for korean)..
I want users to be able to enter an english word or enter a korean word in each respective textboxes...
Now I can only enter english in both of them... Even if my keyboard language is switched to Korean(I have the language pack installed).. I can not type in Korean in the Korean text box....
I thought I could simply change this using something like:
[Code]....
View 1 Replies
May 7, 2015
I have text box and submit button in my page and I have 2 table 1- WORD table 2-name table in database
when I click on submit button it insert textbox.text in database in Name table
I define some word in my word table like:
Bad
Worst
badly and other words
Now I want if users enter word's that is in Word table when they click on submit button it replace that word with this word-->"GOOD"
How I can do it?
View 1 Replies
Apr 15, 2010
any component or library (preferably open source) that would allow me to convert Word 2007 documents to Word 2003 with ASP.NET?
View 3 Replies
Feb 25, 2016
I have QuestionTable.
ID Question Answer1 Answer2 Answer3 Answer4
But I want import from MS Word into table. I have question like this:
Question: @1.The capital of India.
Answer:$A) Dushanbe;$B) Moscow;$C) Delhi;$D) Kabul;
@2.The capital of Tajikistan.
$A) Dushanbe;$B) Moscow;$C) Delhi;$D) Kabul;
@3.The capital of Afganistan.
$A) Dushanbe;$B) Moscow;$C) Delhi;$D) Kabul;
Output result:
ID Question Answer1 Answer2 Answer3 Answer4
1 1.The capital of India. A) Dushanbe; B) Moscow; C) Delhi; D) Kabul;
View 1 Replies
Feb 3, 2010
I'm hoping this is an easy one...I'm using Microsoft.Office.Interop.Word to convert uploaded word documents into previewable html files. I haven't implemented it fully, but I've played around with it enough that I think I have a plan that will work... My question revolves around
[Code]....
I'm not in love with the idea of opening word and closing it everytime there's an upload (which I hope is a lot of the time) I'd like to make this a shared object that loads at application start. I have 2 questions
that go along with this. 1. I imagine that winword could lock up and that would be a problem, right? 2. to save a document I use wordapp.ActiveDocument, this could have an issue as a shared object, right? I think I'm talking myself right out of this...
View 1 Replies
Jul 5, 2010
I have requirement where I need to allow users to upload a Word document with place holders for certain fields which can be found in the database. This will be their template. For example the place holders might be prepended with @@ or something. For example
Dear @@Title @@Lastname
They then can grab a record and hit export to Word document. This will then let them choose the template. They can select the template and then click continue. I will then get the template and replace the @@Title with the title field in the database for the selected record. I am not sure where to start or what components I need to do this.
From my initial investigation it seems that I can do this with the new open XML standard for Office 2007. So perhaps I should read in the template and save all the contents to a db table somewhere. Then when the use wants to export I get the contents again and then do a search and replace for the @@ placeholders and link them properly. Then save the document to the output stream again which will then bring up the save dialog on their browser.
I am using ASP.Net MVC and am in a hosted environment. I was also maybe contemplating dynamically creating a new View type and dynamically creating new views when the user uploads a template. Not sure that this approach will work though.
View 2 Replies
Sep 2, 2010
I'm a student doing final year of my Computer Science and Engineering. For my final year project i've choosen to do an online word processor such as google docs,zoho etc.I want to implement this project in .net. This will be a ajax oriented project and i'm well prepared with the web related part of it with ASP.net and C#.net at the server end and HTML,Javascript at the front end. But the point where i'm struck up is:
-> How can i create, edit and add MS Word features to a .doc file using VB.net or C#.net??
-> .net Library classes that will be helpful for me to create word related components as .doc files i.e how to create word using .net?
-> How can i convert a .doc file to HTML file to display it on a web browser?
-> In brief tell me how to create a word processor so that i'll be able to create it online.
View 1 Replies
Nov 22, 2010
I need to be able to click on a button and have it open a word document help file that is stored on the LAN (e.g. \serverfilepath.doc). The word doc can be opened in Word or in the browser, which ever is easier. What's the easiest way to do this?Opening a PDF is even easier, I'm open to that option as well. I'm running Visual Studio 2008 with VB codebehind.
View 3 Replies
Feb 11, 2011
I want to open word file in internal window without Dialog box.I use below code.Its is working fine on local machine but when i upload this code on ftp server its is not working and giving me error of Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80070005.
[code]....
View 5 Replies
Mar 3, 2011
I would like to know about commands of : How can I set an index to a single word on my word-document, by some asp commands.(Word-basic ...)Also, how to merge two files to a single word file (rtf).
View 1 Replies
Oct 13, 2010
I'm trying to open Word & Excel docs in a new browser window. The windows opens and then closes straight away. I think I may need browser plugins. Can someone provide some advice on how I can achieve this?
Here's my code:
From calling page:
[Code]....
From new page:
[Code]....
View 1 Replies
Jan 31, 2011
What i need to do is to retrieve only one page of word document at a time and provide user with next and previous buttons to move to forward and backwards to view other pages of document, just like pagging in gird view of other controls.
View 2 Replies
Jan 20, 2010
I have an word document that's get opend by an web application and some handling is processed.
On my local iis serer this works but not on the real web server.
I installed word 2007 on the web server and set impersonation to true in the web config.
The code I use:
[Code]....
View 7 Replies
Apr 14, 2010
I am pulling word documents that have been stored in our db as blobs and presenting them to the user. As you can see below, I am writing to the http stream via BinaryWrite. This is causing the Microsoft Word application to open in a separate window. My goal was to open the word document inside of the browser instead. Preferably inside of an iframe within the browser. Is there a way to target an iframe by some analog of the method below?
[Code]....
View 3 Replies