472,353 Members | 1,882 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,353 software developers and data experts.

Open window as readonly

Gyanchand
using a popup i am displaying the contents of a word file. the user must not be able to edit the word file. but in the popup window user is able to edit the file....

Can we open the popup window as readonly or something
Jul 23 '07 #1
5 1494
jhardman
3,406 Expert 2GB
using a popup i am displaying the contents of a word file. the user must not be able to edit the word file. but in the popup window user is able to edit the file....

Can we open the popup window as readonly or something
Is this a word file that is already saved, or created dynamically?

If the former, you should be able to lock it from edits as you save it.

Jared
Jul 23 '07 #2
Although they may get the impression they are modifying the original Word file, this is simply a local copy and the server file would not be edited. Not sure if this helps or not?
Jul 24 '07 #3
hey Jared, thanks for your reply man...

yes, the file is being created dynamically.. Even tried setting the file attributes to readonly.. but... when the file is opened in the popup window... it is editable to the user...
However, while closing the popup window the msg is displayed saying the file is readonly and the user is prompted to save the file to another location...

neway is there any other way where in the user is not ina position to edit the contents ...
Jul 24 '07 #4
yes keping this option as the last resort, but just wanted to know how to lock the contents of the file or make the window readonly .... neway.. thanks man chris
Jul 24 '07 #5
jhardman
3,406 Expert 2GB
Although they may get the impression they are modifying the original Word file, this is simply a local copy and the server file would not be edited. Not sure if this helps or not?
Yeah, Chris is right. the best you can do with word is what you have done. If you don't need it to be a word doc you could look into making a PDF file. I saw a recent tutorial where the user made a PDF form, then used an asp page to collect the data and fill out the form.
Jul 25 '07 #6

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

Similar topics

1
by: pbuu | last post by:
Hi Does anybody know a cross-browser way to create a readonly popup window, ie it should not allow itself to do anything but to close. No...
2
by: s_m_b | last post by:
<script language="javascript" src="/inc/js_popup_window.js" type="text/javascript"></script> <script language =" JavaScript"...
3
by: Raymond Lewallen | last post by:
I have a modal dialog displaying a datagrid control. Click on the column header to sort the datagrid opens a new window with the following in the...
0
by: Elton W | last post by:
Hi Peter, You use DeleteButton.Attributes.Add("onclick", "return confirm ('Are you sure you want to delete?');"); in datagrid_ItemDataBound...
0
by: coosa | last post by:
Dear all, I tried to replace the GridView Column's HyperLinkField "DataNavigateUrlFormatString" property with a java script pop up window, but...
2
by: Alan T | last post by:
In my C# application, I want to open a Word document using the code from the Help: using Microsoft.Office.Interop.Word; object readOnly = true;...
3
by: DG | last post by:
Is there a documentation on how to build Word documents with just writing XML? Footer, header, tables, insert images, fonts, ect....
24
by: Jeremy J Starcher | last post by:
While reading c.l.j, I've noticed that some people prefer and indeed even recommend the use of "window.alert()" over "alert()". I can't find any...
2
by: saketmayur | last post by:
Hi , I have write the following code to open word document on server using Microsoft.Office.Interop.Word; string DocPath =...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python...

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.