473,399 Members | 2,858 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 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 1614
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 refresh F5, no rightclick etc. Regards/peter
2
by: s_m_b | last post by:
<script language="javascript" src="/inc/js_popup_window.js" type="text/javascript"></script> <script language =" JavaScript" type="text/javascript"> function openScanWindow () {...
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 location: ...
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 event to add confirmation for delete button.
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 wehen i preview the page, the link is REMOVED! Does...
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; object fileName = @"C:\Test\NewDocument.doc"; ...
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 technical reason to make this distinction, and...
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 = System.Configuration.ConfigurationManager.AppSettings; ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...

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.