Web Forms :: How To Open Word / Excel Docs In New Window

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


Similar Messages:

Web Forms :: Open Word Excel PDF PowerPoint (PPT) Files In New Browser Window?

Mar 26, 2016

Below is the page and file is in local drive.

<asp:GridView runat="server" ID="gvDetails" AutoGenerateColumns="false">
<Columns>
<asp:BoundField DataField="Id" HeaderText="Id" />

[Code].....

View 1 Replies

Web Forms :: How To Create Printable Web Forms Using Word Or Excel Docs As A Guidline

Mar 21, 2010

I have been presented with numerous word and excel docs. The goal is to put them online and bind to a database for the fields and also to store data for easy searching and reporting.

Has anyone done anything like this before?

I know the easy solution would be to create a database table for each particula form and also an ASP.net page for each form.

But then there are problems like printing and correct formating so it fits on the page, spaning multiple pages and so on.

And also is there any advice on how to write to PDF straight from the page?

View 1 Replies

Security :: Forms Authenication Prevent Word Docs Being Rendered

Nov 23, 2010

I have a .Net 4 web application which has a folder called "docs" which is full of Word docs on the root of the website. The words docs are linked with a gridview in my "admin" section

I only want Autheicated users to be able to renders the word docs in the doc folder. I am finding if the user logs out and they manually type in the url to the Word document it renders the file eg.

www.mydomain.com/docs/something.doc

i have tried putting this in my web.config but did not work for the Word docs. It stops the rendering of .aspx files but not .doc's

<location path="docs">
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location>

Is this because the .doc extension is not hadled by the .Net framework and that I need to do something to Handler Mapping in IIS7? I would prefer to put all my security setting in the web.config ideally

View 5 Replies

C# - Retrieve And Zip Up Word Docs From SQL Server

Apr 4, 2011

I have an asp.net app that uses a SQL Server 2005 database to store word documents. One of the application requirements is that when a user clicks a button, the system retrieves some number of word documents from the db, zips them up in memory and allows the user to save the zip file to disk.

Is there a zip library that provides the ability to zip up files in memory? The few that I've seen read from the file system.

View 3 Replies

Forms Data Controls :: Gridview To Excel - Open In The Same Browser Window?

Feb 3, 2010

I'm exporting the GridView to Excel. It works fine and I receive a prompt to Save/Open/Cancel the file although I need the file to be saved automatically in the provided (passed to the Export function) location and opened in the same browser window where the Gridview was.

View 2 Replies

C# - How To Display Size And Icon For Pdf And Word Docs

Oct 13, 2010

I have webpages that contain links to word documents and pdf files. For each link I want to display the file size and an icon showing what the file type is.

I'm thinking the best way to do this would be with CSS? Can anybody give me an example of how to do this?

View 1 Replies

Html - Programmatically Generating Editable Word Docs?

Jun 25, 2010

The purpose is to generate proposal documents that can manually be edited in Word after the fact, but before sending them out to the customers.

Much proposal content would be drawn from existing HTML website content (backing CMS) and also some custom (non-HTML) injection for certain scenarios. Of course the conditional logic could go into server-side ASP.NET to vary the content appropriately.

I'm open to 3rd-party tools if raw manipulation of the Word API is arduous. In fact a good 3rd party tool might be the answer.

View 3 Replies

Web Forms :: Create / Show / Edit A Excel File - Use The Google Docs Api Or Any Dll?

Oct 30, 2010

I want create/show/edit a excel file from my asp.net application. All I want is like the working of Google docs. Is there a way I can implement it? Any dll or can i even use the google docs api for that?

View 4 Replies

VS 2008 - How To Open Existing Excel File (not In Browser) In A New Window

Mar 20, 2013

I tried simple code like this using href element. But it tries to open the sheet.xls in the browser window and says it can't find the file. I want the excel file to be opened in excel (not browser).

<a href="file://domainname/vol1/destinationfiles/sheet.xls" >some excel file</a>

View 1 Replies

Web Forms :: Open Word Document In Word Program Not In Browser

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

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

Web Forms :: Open Word Document In Iframe Without Open / Save Dialogue

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

How To Pass A Parameter To The Child Window From Parent Window Using Window.open

Oct 18, 2010

i have an aspx page in which a link in the grid view opens a popup page . the data in the grid view would be dynamic and i need to send the id of the row of grid while calling the child window. i get the id using sender.id, but how would i send this using window .open()?

View 2 Replies

Web Forms :: Close Popup Window And Open Page In Parent Window?

Mar 10, 2011

I have a login page that is loaded in popup window (colorbox) and after user logs in it should be closed and parent window should be loaded with new page.

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Do While reader.Read()
If Trim(reader("ZAP").ToString()) = Trim(textBoxZap.Text) Then
Session("A") = "1"
Response.Redirect("~/default.aspx")
Else
lblErr.Text = "incorect"
End If
Loop

So once the buton is clicked and user name and password is corect popup window should be closed and user redirected to default aspx.

View 1 Replies

Web Forms :: Retrieve Value From Popup Window Opened Using Window.open?

Apr 28, 2010

I am trying to open a popup window from main window using window.open() method. How to get back the value from the called popup window to the calling window in vb.net, basically i need to get back the value and populate in the text box available in the main window.

View 3 Replies

Web Forms :: How To Open The Redirected Page From Iframe To Open In The Parent Window

Feb 17, 2011

I have an asp.net page that contains an Iframe embedded with some data and a ImageButton. On ImageButton click event (server side) I have Response.Redirct:

Response.Redirect("results.aspx");

This always open the results.aspx in iframe. I want that results.aspx should always open in the parent window. I tried the following till now but none worked:

Response.Redirect("<script language='javascript'>self.parent.location='results.aspx';</script>");
Response.Redirect("javascript:parent.change_parent_url('results.aspx');");
..and also tried the options from [URL]

View 1 Replies

Web Forms :: Click Imagebutton Open Window.open In Class 2.0

Sep 11, 2010

Click imagebutton open window.open in class asp.net 2.0

View 2 Replies

Web Forms :: How To Pass A Window Name To Window.open

Feb 12, 2010

How do I pass a window name to window.open(url, windowname) programmatically? I am using a user control inside aspx forms. I want the windowname to be different, so from each link a separate window opens.

I have an asp:hyperlink in a .ascx form. The code looks like this:

<asp:hyperlink runat="server" id="xx", navigateurl="is set programmatically" onclick="javascrip:return popup(this, 'my window'; " text="xxx"/>
'my window' needs to be a variable.

View 3 Replies

Web Forms :: Open Popup Window With In Another Window

Aug 26, 2010

I have an aspx page which contains a user control(a gridview). When I click on a link button in the gridview, I will open a popup window(An aspx page) successfully. When I click on save button in the popup, I am saving the details and refreshing the parent page successfully. I have a button in popup window. My requirement is:

When I click on the button inside popup window1, I would like to open another popup(aspx)(Say popup window2) in a new window without closing popup window1. When I save some changes in popup window2 and click on save button in popup window2, I need to close it and refresh popup window1.

View 2 Replies

Open Word Document Without Save/Open Dialog Box?

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

Javascript - IE - Get Popup's Opening Window When Using Window.open (url)?

Sep 23, 2010

we are running a click-to-call service, my idea is basically like this: website have a link on their page, when the link is clicked, a web page(say it is popup.aspx) hosted on our server is popup, user can input their phone number, and click "call me" button to let the website call him. In the button click event, I want to get Request.UrlReferrer, then query the db to get website's phone. But in IE, Request.UrlReferrer is null(firefox is ok, not test chrome yet),my question is how to get opening window' url in IE? we put popup.aspx on our server because

our client website is not force to use asp.net. we have the control what we put on the popup window, and can modify the page just from our side, if we put the pop window on our partner's side, if we have 100 partner, and we change the page's design, we will notify everyone of them to change this, change that. we can implement a statics system to know how popup a day, which site is most popular,etc

View 1 Replies

Using The Javascript To Open A Child Window Using Window.showModaldialog?

Sep 24, 2010

I am using the javascript to open a child window using window.showModaldialog(), i have retuen a value from the child page is working fine in IE and firefox but is not working in chrome browser, is there any work around or alternative for it to work in chrome as well.

View 2 Replies

Web Forms :: Display Word Or Pdf File In Window?

Jan 25, 2010

I have a set of doc files with respect to the data in the sql. Now I have to C# code, so that when the column in the gridview is clicked then the respective name must appear ina linklabel in the windows form nad that label must be linked to the respective file. For eg:

name bacteria author citation
aaa myxo sri 12-333-3
vvv mmm xxx 1112-2-2

the values unser sitation must come to the linklabel and that must direct to the respective word files with the names 12-333-3,1112-2-2. Is it possible to do this some how as this is only one example I have many files as such. Is one label enough to perform the necessary action updating itself when I clicked the different columns in the datagrid view as I already did some coding recording linking each column value to a textbox.

View 1 Replies

Web Forms :: Use "Window.Open" Method To Create A New Browser Window From C#?

Aug 25, 2010

I using VS2008 and C# for an ASP.NET web application. From within C# code, how to use the "Window.Open" method to create a new browser window? I know it can be done in ASP script code using Javascript but I would like to create new window from C# as desired.

View 11 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved