Display Word Document as read only in VI pannel

In a VI pannel I put an Active X container with the IE browser to display Word documents.
The document are displayed properly but I want not give the user the possibility to make changes while viewing.
Is there a solution to do so?
(The documents are read-only and can not be saved.)

Why use an IE container to display Word documents? You can place a word document directly in the ActiveX container. This seems a better choice.
If you wish to totally block user-input, you can place a transparent picture control over the display of the Word document.
Another alternative would be to convert the word document to a PDF and show this in an AcviteX container.
Shane.
Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)

Similar Messages

  • Displaying Word documents on web using IFS

    I am trying to display word documents stored in IFS on the web using the IFS Java API. The process we are currently using is outlined as follows :
    1. Connect to IFS using the connect() method of LibraryService class.
    2. Obtain references to IfsFileSystem object and PublicObject (using findPublicObjectbyPath() method of IfFileSystem class).
    3. Cast the PublicObject to Document class.
    4. Obtain a reference to the InputStream using the getContentStream() method of Document class.
    Now, how do we display the contents of this document on the web ? Is there any IFS classes that do this for us or do we have to rely on the Java I/O classes to read the InputStream char-by-char and display the file ?
    Thanks

    If you are trying to retrieve binary content through a customer Web client, you wouldn't write it to the browser - since the browser can only display HTML.
    Instead, you would generate a Web page which includes a URL to the document (e.g. http://ifsserver/:81466, or http://ifsserver/public/mydoc.doc). Subsequently, when a user clicks the URL, the browser will request the document directly from Oracle iFS' http server. When the http protocol server returns the document content, the browser will determine its MIME type, and launch the appropriate viewing application or helper application automatically.
    null

  • How can we make the ms-word data as read-only using java code?

    How can we make the ms-word data as read-only using java code?

    MVSK wrote:
    By using java code i opened a file in ms-word. But the data i want to display as read-only. that means should not change it.I don't think you can do that. Display pdf documents instead.

  • [10.0.7 ESR] Temporary documents are read-only again, even with the "browser.helperAppsbrowser.helperApps.deleteTempFileOnExit" parameter set on "false". Why?

    We currently updated from the old 3.6 Firefox to the ESR version 10.0.7. Eversince we've used Firefox we've had a problem with documents being read-only when downloaded temporarily. But we've found the solution by finding the entry
    browser.helperAppsbrowser.helperApps.deleteTempFileOnExit
    in the about:config and setting it on false. Documents were writeable again, and the world was full of fluffy unicorns and rainbows.
    But that doesn't seem to be sufficient when using Firefox 10.0.7 ESR, since that entry is set but all our documents are read-only again. We checked that it is a Firefox issue by deactivating all add-ons to be sure, that it's the browser itself that makes that setting.
    What is the cause and how can we change it back to them being writeable again?
    Andrea

    While that may be best practice, it doesn't help in this case.
    We use a system that creates documents by using templates and filling datafields with individual values based on the case that is being worked on. These documents are saved in the system and are only displayed for information purpose.
    Still some of these documents have to be altered. The system offers this possibility by letting you edit the temp file and load it back up, so that the altered document is saved in the system. The document gets a unique file name in the temp folder which includes numbers so that the system can identify which document in the system should be overwritten by the altered version.
    Since the documents aren't meant to be on the local harddrive anyway but in the system, "save as..." is no real solution in this case.

  • How to display word document as a HTML document in portal

    Hi
    I developed a portal application in that i am displaying word document using IFrames, from my application i am uploading word document and saving those document in KM
    Requirement is that i need to provide an option to show this word document in html.
    Thanks
    Rudradev.

    Hi Glenn Mendonca
    I thing it is possible
    Even in SDN search results page, we have option called "HTML version" link
    to see the search document in HTML
    see the below url
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.highlightedcontent?documenturi=%2fforums%2fsdn_forums%2fthread%7b74687265616449443d39313633%7d.jspa
    i hope passing doucment as a query parameter to com.sap.km.cm.highlightedcontent?DocumentUri=
    might solve this
    pls give your inputs
    Thanks

  • Open a document in read only mode

    HI All,
    I created a panel in which we have
    edit box which shows the document path
    Browse button to allow a user to select an indesign document
    "Open read only" button.
    My requirement is that after selecting an Indesign document if user click to "OPen read only" button then it will opened selected document in read only mode.
    I will be highly thankfull to all community memeber if anyone can give me some hint to achieve this.
    Regards,
    Alam

    Alam,
    If you change the attributes of the file before opening it to read only the file will be opened as read only by Indesign. And then you could place a responder that could clear this read only flag when the file is being closed so that the permissions are restored to the original state.
    Manan Joshi
      - Efficient InDesign Solutions -
    MetaDesign Solutions
    http://metadesignsolutions.com/services/indesign-development.php

  • How to set only part of the document as "read-only"?

    Hi,
    I am using SharePoint 2010. I would like to set some of the columns as "read-only" while some of them are still editable. If I use Advanced Settigns>Item-Level Permissions, I can only set the whole document as "read-only".
    Is there a way I can do what I wannt?
    Thanks a lot!

    Hi,
     There is no OOTB way to set a column as read-only.  I think you want to make some of the fields as Read-Only in the EditForm.aspx. If so, then you can use the Javascript to do. 
    Add a Content editor webpart to the Editform.aspx page and place the javascript method to make a field read-only.
    You can use the _spBodyOnLoadFunctionNames.push("MakeReadOnly()") method to assocaite your method to the EditForm.
    Here are the links which will help you.
    http://dishasharepointworld.blogspot.in/2011/08/read-only-field-in-sharepoint.html
    http://nishantrana.wordpress.com/2009/01/30/read-only-field-in-sharepoint-editformaspx/
    http://www.jbmurphy.com/2010/06/01/how-to-make-a-field-in-a-sharepoint-edit-form-readonly/
    *******Don't forgot to MARK AS ANSWER / VOTE AS HELPFUL if it really helps************
    R.Mani http://rmanimaran.wordpress.com

  • Can't insert widget as document head read only

    When I try to insert my LIghtbox Gallery widget into my web page in CS5.5 I get the message
    "This widget requires code that must be inserted into the head of the doucment. Insertion cannot happen as the head of this document is read only"
    How do i turn read only off? Or is there any other way to insert it?
    Many Thanks

    Hello Jenny,
    if I understand you correctly, you should only call the widget you need and click "code wiew"
    From there you have to copy the entire source code into an empty DW file. So you can see how that works.
    You can add only the needed code into your file or you can do it all in reverse, by adding your website contents into the widget source code.
    Hans-Günter

  • Property 'DocEntry' of 'Document' is read only

    Hi all
    I've this error on My B1SO to B1SO scenario
    com.sap.b1i.xcellerator.XcelleratorException: XCE001 Nested exception: com.sap.b1i.bizprocessor.BizProcException: BPE001 Nested exception: com.sap.b1i.xcellerator.XcelleratorException: XCE001 Nested exception: com.sap.b1i.xcellerator.XcelleratorException: XCE001 Nested exception: java.lang.RuntimeException: Invoke of: GetBusinessObjectFromXML Source: Description: CServiceData::VerifyPropertyWrite failed; Property 'DocEntry' of 'Document' is read only
    BUI meta document is standard : BIUMETA.B1.8.8_B1.8.8.xml
    I've created my custom ObjectType Z.B1.8.8_SO copied by B1.8.8_SO standard SAp Object  :
    so I've standard valuemapping Z.B1.2004_Doc (7 field)
    and standard Key Policy 4 on keypath BOM/BO/Documents/row/DocEntry
    I also tryed with keyplocy 2 but not run.
    I don't know how to add query parameter
    <QueryParams>
    <DocEntry>
    Value of the SO DocEntry
    </DocEntry>
    any idea ?

    Hi
    please look on below code and replace in yr atom0.xls
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet xmlns:b1e="urn:com.sap.b1i.sim:b1event" xmlns:b1ie="urn:com.sap.b1i.sim:b1ievent" xmlns:bfa="urn:com.sap.b1i.bizprocessor:bizatoms" xmlns:jdbc="urn:com.sap.b1i.adapter:jdbcadapter" xmlns:rfc="urn:sap-com:document:sap:rfc:functions" xmlns:sim="urn:com.sap.b1i.sim:entity" xmlns:utils2="com.sap.b1i.bpc_tools.Utilities" xmlns:vpf="urn:com.sap.b1i.vplatform:entity" xmlns:xci="urn:com.sap.b1i.xcellerator:intdoc" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" bfa:force="" vpf:force="" jdbc:force="" rfc:force="" b1ie:force="" b1e:force="" xci:force="" sim:force="" utils2:force="">
         <xsl:output method="xml" encoding="UTF-8" indent="yes"/>
         <xsl:param name="atom"/>
         <xsl:param name="sessionid"/>
         <xsl:variable name="msg" select="/vpf:Msg/vpf:Body/vpf:Payload[./@Role=&apos;S&apos;]"/>
         <xsl:variable name="vpSender" select="/vpf:Msg/vpf:Header/vpf:Sender/@Id"/>
         <xsl:variable name="vpObject" select="/vpf:Msg/vpf:Header/vpf:Sender/@ObjId"/>
         <xsl:variable name="vpReceiver" select="/vpf:Msg/vpf:Header/vpf:ReceiverList/vpf:Receiver[./@handover=&apos;P&apos;]/@Id"/>
         <xsl:template match="/">
              <Msg xmlns="urn:com.sap.b1i.vplatform:entity">
                   <xsl:copy-of select="/vpf:Msg/@*"/>
                   <xsl:copy-of select="/vpf:Msg/vpf:Header"/>
                   <Body>
                        <xsl:copy-of select="/vpf:Msg/vpf:Body/*"/>
                        <Payload Role="R" id="{$atom}">
                             <xsl:call-template name="transform"/>
                        </Payload>
                   </Body>
              </Msg>
         </xsl:template>
         <xsl:template name="transform">
              <xsl:attribute name="pltype">xml</xsl:attribute>
              <xsl:variable name="PODocEntry" select="$msg/BOM/BO/Documents/row/DocEntry"/>
              <BOM>
                   <BO>
                        <AdmInfo>
                             <Object>17</Object>
                             <Version>2</Version>
                        </AdmInfo>
                        <Documents>
                             <row>
                                  <CardCode>KINGKEVIN</CardCode>
                                  <DocDueDate><xsl:value-of select="$msg/BOM/BO/Documents/row/DocDueDate"/></DocDueDate>
                                  <NumAtCard><xsl:value-of select="$PODocEntry"/></NumAtCard>
                                  <Comments>Copy with B1iSN <xsl:value-of select="$PODocEntry"/></Comments>
                             </row>
                        </Documents>
                        <Document_Lines>
                             <xsl:for-each select="$msg/BOM/BO/Document_Lines/row">
                                  <row>
                                       <ItemCode><xsl:value-of select="ItemCode"/></ItemCode>
                                       <Quantity><xsl:value-of select="Quantity"/></Quantity>
                                       <Price><xsl:value-of select="Price"/></Price>
                                       <Currency><xsl:value-of select="Currency"/></Currency>
                                  </row>
                             </xsl:for-each>
                        </Document_Lines>
                   </BO>
              </BOM>
         </xsl:template>
    </xsl:stylesheet>
    Thanks
    Kevin

  • Sharepoint 2010 Library - All documents are Read Only regardless of permissions and clicking edit

    Good afternoon all,
    I'm running out of places for me to find assistance on this issue, and am hoping you can help. We're running Sharepoint 2010 as our Intranet. Myself and the rest of the IT staff are administrators, and we're looking under a section that we're specifically
    in control of where we have documents for our use. One of the administrators reported that he wasn't able to open a document, and neither was I. This was an older spreadsheet that was never converted. I couldn't open it either, nor could I delete it or manipulate
    the entry in the library. I could open explorer and open the file that way, or download it through Chrome.
    I was able to remove the file, upconvert the file to .xlsx, and reupload it. Now myself and the users are able to open the file, but we can't manipulate it. In addition to this, it seems that any Office file that we attempt to open in Sharepoint opens up
    in Read Only. If we click Read Only, and hit Edit, it stays Read Only (once in a blue moon it allows us to edit it). If we hit edit it still says Read Only at the top.
    I'm not the most experienced at Sharepoint so any assistance would be greatly appreciated.
    Thanks!

    Hi,
    For your issue, try to get rid of the serviceDebug and serviceMetadata entries in the web application's web.config:
    <behaviors>
    <serviceBehaviors>
    <behavior>
    <serviceDebug includeExceptionDetailInFaults="true" />
    <serviceMetadata httpGetEnabled="true" />
    </behavior>
    </serviceBehaviors>
    </behaviors>
    For detailed information, refer to the following blog:
    http://nikcharlebois.sharepointspace.com/Blog/Lists/Posts/Post.aspx?ID=22
    Besides, here are similar issue posts, you can use as a reference:
    http://stackoverflow.com/questions/19164313/sharepoint-opens-documents-in-read-only-mode-for-users-with-office-2010
    https://social.technet.microsoft.com/Forums/office/en-US/a31ab681-b73a-4b20-8ac8-b80a8c8be59f/documents-in-sharepoint-2010-library-opening-as-readonly-for-all-users?forum=sharepointgeneralprevious
    Best Regards,
    Lisa Chen
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Headquarter Error : Property 'DocEntry' of 'Document' is read only

    Hi All,
    I had followed "How to Build & Run a B12B1 Scenario" Documentation and until I created a biz package and activated successfully. But when I try to create a PO in the subsidiary system, It sends ok, but I get the following error in admin console > monitoring > error inbox under the headquarter :
    com.sap.b1i.xcellerator.XcelleratorException: XCE001 Nested exception: com.sap.b1i.bizprocessor.BizProcException: BPE001 Nested exception: com.sap.b1i.xcellerator.XcelleratorException: XCE001 Nested exception: com.sap.b1i.xcellerator.XcelleratorException: XCE001 Nested exception: java.lang.RuntimeException: Invoke of: GetBusinessObjectFromXML Source: Description: CServiceData::VerifyPropertyWrite failed; Property 'DocEntry' of 'Document' is read only
    Your help is appreciated.
    Hany

    Hi Hany,
    the error message tells you that the field DocEntry is a read-only property. That means this field must not occur in the receiver payload. The fields DocEntry, DocNum etc. will be created automatically by the receiving system.
    Please have a look at the SDK Help (DI Reference) according to your current version. There you will see which fields are read-only.
    Kind regards,
    Marcus

  • Word 2010 document becomes Read-Only after saving it

    Hi,
    My Word 2010 document is becoming "Read Only" after saving it, for information my doucment is on the desktop . I searched on this forum and find a couple of solutions (deactivating auto saving, etc.) but it does not work at all. Any other ideas?
    Thanks,
    Sylvain.

    , I wonder why the docuemnt is becoming Read-Only when I am saving it on the Desktop...
    I've read articles and blogs of people arguing each side of whether you should use the Desktop as a storage folder and I really
    don't have anything substantial to add to either the pro or con side of the issue.
    However, what I know about Word is that it behaves a bit different and seems to have issues when you’re actively editing document that are stored
    on the Desktop.  I would speculate that the issue has something to do with the screen driver software.
    When you’re editing a document, Word is actually using something like a dozen or more temporary hidden files and some of these are stored in the
    same folder as the source document. If the source document’s folder is the Desktop, then there has to be interaction with the screen driver. 
    This interaction with the screen driver is one variable that makes the Desktop folder unique and possibly problematic and thus Word under certain conditions
    makes the file Read Only.
    Kind Regards, Rich ... http://greatcirclelearning.com

  • Issue regarding open word file and read only mode using c# & MS-word interop

    i am programmatically open a word file for search and highlight keyword. my routine is working fine. the problem is when i am opening the file programmatically then a dialog come and ask me to open file in read only mode. the dialog look like below one
    actually i do not want to open the file in read only mode because people can open and like to change and save. so guide me what i can do to not to open the file in read only mode.
    here is my full code. just have a look and tell me what is wrong in my code or tell me any trick as a result i can open the file not in read only mode. here is my code.
    private void button1_Click(object sender, EventArgs e)
                object fileName = "";
                string filePath = "";
                string strSaveasPath = "";
                DialogResult result = openFileDialog1.ShowDialog();
                if (result == DialogResult.OK)
                    fileName = openFileDialog1.FileName;
                    //strSaveasPath = Path.GetDirectoryName(path.ToString());
                //fileName = "Z:\\C0000000003.doc";
                List<string> _list = new List<string>();
                _list.Add("tridip");
                _list.Add("arijit");
                //object fileName = "D:\\CVArchievePath\\C0000000001.doc";
                object textToFind = "test";
                object readOnly = false;
                Word.Application word = new Word.Application();
                Word.Document doc = new Word.Document();
                object missing = Type.Missing;
                try
                    doc = word.Documents.Open(ref fileName, ref missing, ref readOnly,
                                              ref missing,
    ref missing, ref missing,
                                              ref missing,
    ref missing, ref missing,
                                              ref missing,
    ref missing, ref missing,
                                              ref missing,
    ref missing, ref missing,
                                              ref missing);
                    doc.Activate();
                    object matchPhrase = false;
                    object matchCase = false;
                    object matchPrefix = false;
                    object matchSuffix = false;
                    object matchWholeWord = false;
                    object matchWildcards = false;
                    object matchSoundsLike = false;
                    object matchAllWordForms = false;
                    object matchByte = false;
                    object ignoreSpace = false;
                    object ignorePunct = false;
                    object highlightedColor = Word.WdColor.wdColorGreen;
                    object textColor = Word.WdColor.wdColorLightOrange;
                    object missingp = false;
                    Word.Range range = doc.Range();
                    foreach (string line in _list)
                        textToFind = line;
                        bool highlighted = range.Find.HitHighlight(ref textToFind,
    ref missing,
    ref missing,
    ref missing,
    ref missing,
    ref missing,
    ref missing,
    ref missing,
    ref missing,
    ref missing,
    ref missing,
    ref missing,
    ref missing,
    ref missing,
    ref missing,
    ref missing,
    ref missing,
    ref missing,
    ref missing,
    ref missing);
                    System.Diagnostics.Process.Start(fileName.ToString());
                catch (Exception ex)
                    Console.WriteLine("Error : " + ex.Message);
                    //Console.ReadKey(true);
                finally
                    //doc.Close(missing, missing, missing);
                    if(doc!=null)
                        System.Runtime.InteropServices.Marshal.ReleaseComObject(doc);
                    if (word != null)
                        System.Runtime.InteropServices.Marshal.ReleaseComObject(word);
                    word = null;
                    doc = null;
                    GC.Collect();
                    GC.WaitForPendingFinalizers();

    I know it's a very old issue and I reached to this page looking for a solution. Finally, I have found a fix to this problem.
    The problem is that we create an instance of Word and do not close it correctly. This makes program believe that the file is already open and hence you're getting the respective message of file being locked by you.
    Set the visibility of your application to true and then when you close it both file and instance should close and you will not get the problem again.

  • Display Text Area as Read Only

    Hello,
    I have about 5 forms, some of the forms have text areas with counters. All of my text area fields are pretty much set up the same way:
    width = 75, height= 6, max width = 500.
    When a user logs in with read only priv. the text areas turn change to read only. The problem is when I enter some data into a text area it will display across the screen. I need the text area to do word wrap. I have tried the following in the Read Only Element Table Cell Attribute.
    display:block; width: 400px; word-wrap: break-word; overflow:hiddenI have also tried to add some CSS to my HTML Header, which adds borders to all of the fields, which is not wanted and it doesn't word wrap.
    <style type="text/css">
    span.display_only {border:2px inset #D4D0C8; padding:1px 0px;}
    </style>Any help, is greatly appreciated.
    Mary
    Edited by: MaryM on Aug 25, 2010 11:58 AM

    They are page items all of them have character counters. The problem, comes when a user logs in with Read Only privelages, then the text area's turn to Read only. For example, if I enter something in the text box like (xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxeeeeeeeeeeeeeeeeeeeeeee) it will display across the screen when a Read Only user logs in and looks at it. I need it to word wrap, when it is in Read Only mode. It will also display the same way if I change the field type to Display as Text ex: (xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee), it will not word wrap.
    All of my text area boxes are varchar2 (300) or more in length. I need to be able to word word wrap. I was able to do with classic reports, using standard report columns and in the css I added the following:
    display:block; width:400px;word-wrap:break-word;overflow:hidden.Hope I explained this better.
    Mary
    Edited by: MaryM on Aug 25, 2010 12:25 PM

  • Displaying Word Document from a Database

    Let me try to explain this.
    I can upload and store a Word Document in an Oracle database
    (BLOB column) but now I need to extract that Word document and
    place a pointer to it on the Web. Can someone explain to me how
    this is done?
    I'm trying to do something like have an image displayed on
    the Web and when you click on it the Word Document is opened.
    Follow me on that? So, if there are 15 Word documents in the
    database, then the web page would have 15 images all pointing to
    each separate Word document.
    Has anyone done this?

    Don't take my word on this, but I think this should work;
    I've done this in the past to send dynamically-generated CSV files
    to the user, which is in a way (at least at the perspective of
    what's being outputted to the user) the same thing.
    First, obviously, you need to retrieve the Word document data
    from the database. We'll say you put that in a variable called
    'wordDoc'.
    <cfset wordDoc = someQuery.wordDataObj />
    Next, we need to set the 'Content-disposition' HTTP header,
    to tell the client's browser that we're sending a file, and that we
    want you to call it somefile.doc by default. We'll do this with the
    <cfheader> tag (note that if you use <cfflush> in the
    application, this tag (and thus, this approach)
    will not work.
    <cfheader name="Content-disposition" value="attachment;
    filename=somefile.doc" />
    Almost there. Now we need to set the Content-type HTTP
    header, to tell the browser what kind of data is coming, and then
    give it the actual file data. We'll use the <cfcontent> tag
    to do both of these things.
    <cfcontent type="application/msword"
    reset="yes">#wordDoc#</cfcontent><cfabort>
    If memory serves, this should be all you need. Note the
    <cfabort> after the closing <cfcontent> tag, I've had
    problems in the past with additional output on the page after these
    tags being appended to what gets sent to the browser, so I use a
    <cfabort> afterwards to make sure nothing more gets sent
    after the data we want. Also, at least with CFMX7, I've noticed
    that debugging output tends to get added in too regardless, so I
    typically put a <cfsetting showdebugoutput="false" /> at the
    top of the file, too.
    I can't guarantee this will work, I haven't tested this
    particular situation, but if it doesn't, it ought to be close. Let
    me know if I'm wrong.
    Attached is what should be the code without my commentary /
    rambling interspersed.

Maybe you are looking for