CS4:Make a document ReadOnly while is open?

Hello everyone,
I need to make a document ReadOnly while is open. The idea is I want to block any user interaction(modification) in front most document in some situations and of course to be able to back to RW state later.
I know is possible to Open a doc as ReadOnly, but is it somehow possible to set this attribute to an already open document? if not, what would be a good workaround for that?
Also, I found a utility interface ( IFileUtility.h ) and a method called SetFileReadOnly() but couldn't find any Boss class to aggregate this interface.
Since I want to implement this on Mac/Windows would prefer to use SDK's API for this purpose.
I'm in rush to implement this today, any helps greatly appreciated.
Thanks,
Kamran

No the point is to set the attribute on the fly, the complexity of user action plus some other settings for that doc, make it expensive to close and open it again and again.

Similar Messages

  • Help please I can not openening because: Error opening the document,  Acrobat can not open the file while printing another document

    Help, I ca not opening the file, beacause the mac says Error opening the document, Acrobat can not open the while printing another document

    Thank you very much for your replies Taggert_77 & swmtgoet_x :D
    Taggert77_: I have never used NetBeans. I only installed it in the bundle as I had read on another post that somehow installing the bundle magically helped another user with the same problem (he didn't know why it worked after that either).
    Before XP SP3 I was able to execute .jar file through cmd prompt. Now I am not.
    This file is executable, grab it and you will see. Here is a screen shot (program in front is FlashFXP, behind is the cmd prompt and what should happen):http://www.freeimagehosting.net/uploads/53273b4ddf.jpg
    swmtgoetx_: I only did the other cmd's to try to make it spit out something, anything lol :D
    The proper cmd is simply: java -jar soht-client-0.6.2.jar
    I did give your cmd a try, and it produced nothing :( (just like the other correct cmds)
    java -client -jar soht-client-0.6.2.jar soht.properties
    Thank you again...the mystery remains
    PS. If you do a search for this you'll find an amazing amount of XP SP3 users with the same problem and no solution posted that I could find except one chap that did the unistall install order that I did above).

  • I have an ipad mini. From one moment to another a document that was created and used on pages app ( on the ipad mini) does not want to open ( When pressed it states " document cant be opened). How can I make this document open again?

    I have an ipad mini. From one moment to another a document that was created and used on pages app ( on the ipad mini) does not want to open ( When pressed it states " document cant be opened). How can I make this document open again?
    I have tried back ups and  restoring, resetting, and even updating the pages app. And nothing has worked.

    I have an ipad mini. From one moment to another a document that was created and used on pages app ( on the ipad mini) does not want to open ( When pressed it states " document cant be opened). How can I make this document open again?
    I have tried back ups and  restoring, resetting, and even updating the pages app. And nothing has worked.

  • I am currently running a trial version of indesign. i am trying to make a cd booklet. when i open a new document and try to find 'compact disc' in the document presets, it isn't there. all i have for options are 'default and custom'. is it possible to ope

    i am currently running a trial version of indesign. i am trying to make a cd booklet. when i open a new document and try to find 'compact disc' in the document presets, it isn't there. all i have for options are 'default and custom'. is it possible to open the 'compact disc' preset from a trial version?

    Are you sure, Eugene? I have this option:

  • How to make PDF documents that open in Adobe reader open in Preview

    How do I make PDF documents that open in Adobe Acrobat open in Preview?

    Hold down the control key and select a file of the given type in the Finder. A contextual menu appears. Release the  control key and hold down the option key. From the contextual menu, select the submenu
              Always Open With
    and then the application you want to open all files of that type.

  • Photoshop cc can't open and make new documents.

    I'm using adobe creative cloud and photoshop cc.
    When I run the Photoshop cc, it can't open and create new documents.
    Open and make new documents Photoshop don't work so i terminate a photoshop cc use windows task manager.
    I use windows7 ultimate k on lenovo x220t.
    I uninstall the Photoshop cc and install again but symptoms refeat.
    Please give me good opinion.

    You have permissions issues with your user folder and the location where the PS swap files are stored. You need to fix that part...
    File Permissions Stuff
    Mylenium

  • Use cs4 make loader load flex swf width/height problem

    hi,all:
      i use cs4 make as3 loader from SharedObject.getLocal, load flex make swf file, so width/height is not Ok
    load cs4 make swf file is Ok,
    why?
    as3code:
    // copy right china summer xiatian qq 11602011
    package{
      import flash.net.SharedObject;
      import flash.utils.ByteArray;
      import flash.display.*;
      import fl.controls.*;
      import flash.net.URLRequest;
      import flash.net.URLRequestMethod;
      import flash.system.ApplicationDomain;
      import flash.system.LoaderContext;
      import flash.net.*;
      import flash.utils.*;
      import flash.external.ExternalInterface;
      import flash.system.*;
      // http://as3corelib.googlecode.com/svn/trunk/src/com/adobe/crypto/MD5.as
      import com.adobe.crypto.MD5;
      import flash.events.*;
          public class MyCacheLoader extends Sprite
              public function MyCacheLoader()
                  Security.allowDomain("*");
                  Security.exactSettings = true;
                  function getStr(s:String):String
                     return ExternalInterface.call("(function(){return window['" + s + "'];})")  || '';
                  function MyLog(s:String):void
                      // ExternalInterface.call("(function(){var o = document.getElementById('myLog');o.value += '" + s + "' + '\n\n';})");
                      ExternalInterface.call("(function(){top.alert('" + s + "');})");
                      // myTestTxt.text = myTestTxt.text + s + "\n\n";
                  var bLoadSwf:Boolean = true;
                  var parm:Object = loaderInfo.parameters;
                  // parm["u"] = "/xuicore/test/myTest.swf";
                  // parm["v"] = "4.4";
                  var szUrl:String = parm['c'] + "/CMHS?jsessionid=" + parm['s'] + "&CMHS=GetOutSpFile&rmpath=rs/&rmf=" + parm["u"] + ".swf",
                      szVer:String = parm["v"], szName:String = parm["u"];// "X" + MD5.hash(parm["u"]);
                  var loader:Loader = new Loader();
                  var so:SharedObject = SharedObject.getLocal(szName);
                  loader.x = loader.y = 0;
                  addChild(loader);
                  function showSwf(byteArray:ByteArray):void
                    // MyLog("开始显示处理: " + byteArray.length);
                    if(0 >= byteArray.length)return;
                    bLoadSwf = false;
                    // loader.visible = false;
                    configureListeners(loader.contentLoaderInfo);
                    var context:LoaderContext = new LoaderContext(false,ApplicationDomain.currentDomain);
                    // context.allowLoadBytesCodeExecution = true;
                    loader.loadBytes(byteArray, context);
                  function displaySwf():void
                     var oData:Object = so.data;
                     // MyLog([szVer, oData.version].join(" = "));
                     if(szVer == oData.version)
                       showSwf(so.data.swf as ByteArray);
                     else downloadSwf();
                  var ldr:URLStream = new URLStream();
                  function downloadSwf():void
                      bLoadSwf = true;
                      // MyLog(szUrl);
                      var ur:URLRequest = new URLRequest(szUrl);
                      ur.data = new Date().getTime();
                      ur.method = URLRequestMethod.POST;
                      configureListeners(ldr);
                      ldr.load(ur);   
                  function configureListeners(dispatcher:IEventDispatcher):void {
                      dispatcher.addEventListener(Event.COMPLETE, completeHandler);
                      dispatcher.addEventListener(HTTPStatusEvent.HTTP_STATUS, httpStatusHandler);
                      dispatcher.addEventListener(Event.INIT, initHandler);
                      dispatcher.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
                      dispatcher.addEventListener(Event.OPEN, openHandler);
                      dispatcher.addEventListener(ProgressEvent.PROGRESS, progressHandler);
                      dispatcher.addEventListener(Event.UNLOAD, unLoadHandler);
                      if(!bLoadSwf)dispatcher.addEventListener(Event.INIT,loaded);
                  function removeListeners(dispatcher:IEventDispatcher):void {
                      dispatcher.removeEventListener(Event.COMPLETE, completeHandler);
                      dispatcher.removeEventListener(HTTPStatusEvent.HTTP_STATUS, httpStatusHandler);
                      dispatcher.removeEventListener(Event.INIT, initHandler);
                      dispatcher.removeEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
                      dispatcher.removeEventListener(Event.OPEN, openHandler);
                      dispatcher.removeEventListener(ProgressEvent.PROGRESS, progressHandler);
                      dispatcher.removeEventListener(Event.UNLOAD, unLoadHandler);
                      if(!bLoadSwf)dispatcher.removeEventListener(Event.INIT,loaded);
                  function loaded(e:Event):void{
                          loader.x = loader.y = 0;
                          loader.content.y = loader.content.x = 0;
                          var s:String = "", k:String, obj:Object = loader.content;
                          // for(k in obj)s += k + " = " + obj[k] + ";";
                          // obj.width = "100%", obj.height = "100%";
                          // MyLog([obj.width, obj.height].join(", "));
                          loader.x = -180;
                          loader.scaleX = 1.83;
                          loader.scaleY = 1.05;
                          // loader.content.height = stage.stageHeight;
                          // loader.scaleContent = true;
                          // loader.content.width = stage.width,loader.content.height = stage.height;
                          // loader.content.stage.stageWidth = stage.stageWidth,loader.content.stage.stageHeight = stage.height;
                          // loader.content.stage.scaleMode = "exactFit";
                          setTimeout(function(){
                            // loader.x = loader.content.x = 0;
                            var fullWidth:Number = loader.content.width;
    var fullHeight:Number = loader.content.height;
    var stageWidth:Number = loader.content.loaderInfo.width;
    var stageHeight:Number = loader.content.loaderInfo.height;
    var fixOffStageScaleX = fullWidth / stageWidth;
    var fixOffStageScaleY = fullHeight / stageHeight;
                            loader.content.scaleX = fixOffStageScaleX,loader.content.scaleY = fixOffStageScaleY;
    // loader.content.width = stage.width * 1.59;loader.content.height = stage.height * 1.15;
                            // loader.content.width = stage.stageWidth,loader.content.height= stage.height;
                            // loader.width = stage.stageWidth,loader.height= stage.height;
                            // loader.content.stage.scaleMode = "exactFit";                       
                          }, 3000);
                  var _byteArray:ByteArray = new ByteArray();
                  function completeHandler(event:Event):void {
                      if(bLoadSwf)
                          if(0 < _byteArray.length)
                             so.data.swf = _byteArray;
                             so.data.version = szVer;
                             try{so.flush();}catch (e:Error){}
                             removeListeners(ldr);
                             showSwf(_byteArray);
                          else removeListeners(ldr);
                          bLoadSwf = false;
                          ldr = null;
                      else
                          removeListeners(loader.contentLoaderInfo);
                          // loader.visible = true;
                          // loader.content.width = (height / loader.content.height) * loader.content.width;
                          // loader.content.height = (width / loader.content.width) * loader.content.height;
                          if(isNaN(loader.content.width) || 0 >= loader.content.width)
                            setTimeout(function(){
                             loader.content.width = stage.stageWidth;
                             loader.content.height = stage.stageHeight;
                          }, 4000);
                          // width=loader.content.width;  height=loader.content.height;
                          // MyLog("显示处理完毕");
                  function httpStatusHandler(event:HTTPStatusEvent):void {
                      // MyLog("httpStatusHandler: " + event);
                  function initHandler(event:Event):void {
                      // MyLog("initHandler: " + event);
                  function ioErrorHandler(event:IOErrorEvent):void {
                      // MyLog("ioErrorHandler: " + event);
                  function openHandler(event:Event):void {
                      // MyLog("openHandler: " + event);
                  function progressHandler(event:ProgressEvent):void {
                      // MyLog(bLoadSwf + ": progressHandler: bytesLoaded=" + event.bytesLoaded + " bytesTotal=" + event.bytesTotal);
                      if(bLoadSwf)
                        var urlStream:URLStream = event.currentTarget as URLStream;
                        while (urlStream.bytesAvailable)
                           urlStream.readBytes(_byteArray, _byteArray.length);
                  function unLoadHandler(event:Event):void {
                      // MyLog("unLoadHandler: " + event);
                  displaySwf();
    flex code:
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" horizontalAlign="left" layout="absolute"
    paddingLeft="2"
        paddingTop="2"
        paddingBottom="2"
        paddingRight="2"
        autoLayout="true"
        width="100%"
        height="100%"
    backgroundGradientColors="[0x000000,0xBAD3F9]"
    ">
    </mx:Application>
    must:
    width="100%"
    height="100%"

    loader from SharedObject.getLocal, use SharedObject.getLocal cache bytearray swf data is ok,
    so, Can be seen as not with urlstream
    loader.loadBytes(byteArray, context);
    as3 cs4
    flex sdk 3.3.0.4852

  • The Document Information Panel was unable to load. The document will continue to open ?

    I am using Sharepoint 2010; DIP in microsoft word all the while is working fine, not sure why suddenly it came out the following error when save word doc  into sharepoint.
    ERROR MESSAGE
    ===========
    "The Document Information Panel was unable to load. The document will continue to open.
    The form contains schema validation errors.
    Content for element 'documentManagement' is incomplete according to the DTD/Schema. "
    How to troubleshoot? Recently I added lookup column and a workflow into the library, but I did the same thing in another library which never appear to have any issue on it.

    The lookup column is creating the problem , you can find powerscript solution to fix this issue , please check this -
    Fix through Powershell
    http://blogs.msdn.com/b/tehnoonr/archive/2012/05/17/sharepoint-2010-document-information-panel-fails-to-load-when-office-documents-are-opened-in-a-library-that-contains-lookup-columns.aspx
    Fix through Code
    https://social.msdn.microsoft.com/Forums/office/en-US/2a4d6d10-d1d5-4d6a-a22b-62dfb6b60685/lookup-field-creation-and-document-information-panel?forum=sharepointdevelopmentlegacy
    or try this -
    https://social.technet.microsoft.com/Forums/office/en-US/2552fbc8-da24-4d2b-84f6-d39c4d58b137/the-document-information-panel-was-unable-to-load-the-document-will-continue-to-open-for-more?forum=sharepointgeneralprevious
    1. Open this location- C:\Program
    Files\Microsoft Web Designer Tools\Office12\1033\IPEDINTL.DLL
    2. copy IPEDINTL.DLL
    3. paste it here- C:\Program Files\Microsoft
    Office\Office12\1033\IPEDINTL.DLL
    4. Close all the applications that are presently
    open as well as all the browsers
    5. Open the sharepoint site in a new browser
    and check the results !!
    Thanks
    Ganesh Jat [My Blog |
    LinkedIn | Twitter ]
    Please click 'Mark As Answer' if a post solves your problem or 'Vote As Helpful' if it was useful.

  • Issue while clearing open line items

    Hi team,
    While clearing open line items for vendors, customers, and GL's system is posting new line items. It should post without new line items. Example
    Customer is having debit and credit line items with same amount i am going to clearing manually thru f-32 here sytem is posting new document with new line items. It should post without line items. I have selected Negetive postings permited check box in OBY6. I have not selected check box in document types. Do i need to change in document type also or i missed anything in settings pls help me to overcome this issue.
    Regards,
    Nagaraju.

    Dear:
                        The option  to create a clearing document WITH or WITHOUT line items depend on the fields of the structure KONTAB_1ST if all the fields are equal in the documents the clearing document will be generated and posted without line items
    Please check OSS note 95077. Check the settings in
    IMG >Financial Accounting (New) >General Ledger Accounting (New) >
    Business Transactions >Document Splitting >Activate Document Splitting
    Check the following link for the same
    F.13 clearing Document contains Lineitems
    Regards

  • ECC5 -  error message GLT0002 while clearing open entries

    hi all,
    Its a scenario in ECC5. Document splitting is active and One GL account which was not active with open item management is made active now with help of RFSEPA02 program .
    But now if I want to clear the line item in that account the system throws an error with message no GLT0002
    Document splitting: Items for clearing 0010/100062508/2010/001 not found
    Message no. GLT0002
    Requesting ur help.
    Regards,
    Sujata

    Hi Sujata,
    The reason for the error is the following:
    According to change documents in master data of your G/L account  in your
    company code , open item management was switched on for this account. If
    you had documents entered before this changes, i.e. before open item management
    was activated on your G/L account. As a consequence, some information
    required for document splitting at clearing, which is required only
    on open items, wasn´t created when this document  was posted.
    Please see section 5 of note 891144:
    Items posted while open item management was still inactive in G/L
    account master data cannot be cleared after open item management has
    been activated subequently if New G/L document splitting is active.
    Therefore, if document splitting is active, open item management should
    never be activated subsequently on accounts to which documents had
    already been posted with inactive open item management.
    As this rule stated in section 5 of note 891144 was
    violated in your system you cannot clear items posted before
    the date when open item management was activated on your G/L account
    Please exclude such documents from being selected by entering additional selections in your clearing
    transaction.
    Kind Regards,
    Fernando Evangelista

  • Pages error: document can't be opened.

    I use my pages app for most of my writings.
    I Have a lot of important documents in there that I use every day. Every time time I finish editing one of them, I always sync it to iCloud, to make sure it's backed up safely.
    I also have pages installed in my iPhone and Mac.
    Today I tried to open one of my documents using the iPad, but a little message appears: "The document can't be opened".
    Naturally, I've tried opening using my iPhone, Mac and iCloud website, but they all display the same message. The website says it can't download the file.
    I opened all the others documents to make sure they're all working. So the problem seems to be with this specific document.
    I also tried emailing it, and was successful, but the document won't open. When I try deleting it from my Mac an weird message also appears:
    “Document” cannot be converted. Please install a newer version of iWork.
    I have no idea how to fix this problem.
    The only thing which I can think of that may have cause the problem is that, sometimes after uploading to iCloud, I also open pages in my iPhone just to download and keep it safe there also. Maybe during this transfer the file got corrupted somehow.
    It's an important document that I need to recover.
    I appreciate any suggestions.

    I agree with weathertx.
    What in the h*** are they doing?
    I hit the ALL STOP butting on upgrading to Mavericks when stuff started going sideways - this is just the latest.
    Trying to use iWork for the first time - and same issue.  Created a document on my iPad in Pages (I will check for update to pages but there is none indicating I need to in my App store)....and sent that pages file to my Mac Air in DropBox - tried to open "missing XML file" error and when I open the package - there really is NO XML file.  I am not a programmer and should not have to be - to create or complie a missing system file that it needs. 
    Wait a sec.. WORD works but I import a file made in Pages App to Pages and is does not on my Mountian Lion MacAir..?  What?  *pinches self*
    This cannot be fixed by us.  I know that I am making far too many trips to the bug page these days - this is all starting to remind me of days gone buy when I left the PC world for this same reason.  I don't want to be a beta tester.  There is no money in this for me.
    In fact it's the reverse - this is costing me $$.
    This is not very encouraging.
    Pathetic.  Apple should be looking over the fence at this type of thing.  Thier users are the ones that you want to keep, shoudl be your greatest testimonial. 
    This is not a testimonlal in the right direction.

  • Pages app unexpectedly quit whilst I was in the middle of a document. I can now not open it AT ALL. I find it's not just that particular document that won't open, but any of my Pages docs will not open using the current version of Pages. Any help?

    Pages app unexpectedly quit whilst I was in the middle of a document. I can now not open it AT ALL. I find it's not just that particular document that won't open, but any of my Pages docs will not open using the current version of Pages. The reports of the app unexpectedly closing each time, automatically went to Apple, but I am not sure what happens with them then. Does anyone know how to help me with this? We live in a very isolated region so rely on internet help. Thanks

    I also managed to read a few other discussions about Pages and files not being able to open. I actually went to the last back-up and restored the computer from that and everything seemed to work ok again, which is great!...advice from another discussion I think you may have been involved in PeterB. Thanks for the advice...also this advice, as I will make a note of trying to open using the Shift key if it happens again and see what happens...might be an easier first option than restoring from a back-up. Thans heaps for the help!
    I was interested to read some of the other discussions where it was stated that Pages '09 seems to be a better option to use. I have both installed, so I will lkeep this in mind. Thanks heaps!

  • Pages won't open a document created in Pages. Error message "Document can't be opened". Document can't be emailed etc. Pages just hangs.

    I'm new to the IPad. I have a Pages document that won't open. I just get the message "Document can't be opened". If I try to export it by email Pages just hangs while converting the document. If I try to download it to a mac via Cloud, again it just hangs. The document was created in Pages on this iPad.
    Help! Please.c

    I agree with weathertx.
    What in the h*** are they doing?
    I hit the ALL STOP butting on upgrading to Mavericks when stuff started going sideways - this is just the latest.
    Trying to use iWork for the first time - and same issue.  Created a document on my iPad in Pages (I will check for update to pages but there is none indicating I need to in my App store)....and sent that pages file to my Mac Air in DropBox - tried to open "missing XML file" error and when I open the package - there really is NO XML file.  I am not a programmer and should not have to be - to create or complie a missing system file that it needs. 
    Wait a sec.. WORD works but I import a file made in Pages App to Pages and is does not on my Mountian Lion MacAir..?  What?  *pinches self*
    This cannot be fixed by us.  I know that I am making far too many trips to the bug page these days - this is all starting to remind me of days gone buy when I left the PC world for this same reason.  I don't want to be a beta tester.  There is no money in this for me.
    In fact it's the reverse - this is costing me $$.
    This is not very encouraging.
    Pathetic.  Apple should be looking over the fence at this type of thing.  Thier users are the ones that you want to keep, shoudl be your greatest testimonial. 
    This is not a testimonlal in the right direction.

  • I had to reinstall CS4 and now have error messages when opening bridge and photoshop

    The error message is "The specified module could not be found. C:\Program Files (x86)\Common Files\Adobe\Adobe Version Cue CS4\Client\4.0.1\Version Cue.DLL

    I tried what you suggested and it did not help.  whenever I try to open either photoshop or bridge, I get a message saying that there was a problem loading scripts the last time that Bridge was open and do I want to try loading them again?  If I click yes, I get that same error message that I reported in my original question and photoshop/bridge will immediately close.  If I click no, photoshop and bridge will open but it will not let me open a raw format document.  It seems like Adobe Camera Raw is not being recognized.   One of the updates I downloaded was an update to Adobe Camera Raw so the functionality is there, it just can't be accessed.  do you think I should try to uninstall and re-install Photoshop again?
    Date: Mon, 3 Sep 2012 19:48:31 -0600
    From: [email protected]
    To: [email protected]
    Subject: I had to reinstall CS4 and now have error messages when opening bridge and photoshop
        Re: I had to reinstall CS4 and now have error messages when opening bridge and photoshop
        created by Arpit Kapoor in Downloading, Installing, Setting Up - View the full discussion
    Go To Help->Updates and install the latest update. It should work.
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4670793#4670793
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4670793#4670793. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Downloading, Installing, Setting Up by email or at Adobe Forums
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • My macbook pro makes that ejecting noise when i open it but not every time usually when i ve been away for awhile then take it out of sleep it makes the noise is this normal?

    Hi ive had my macbook pro for a week or so and when i open after its been in sleep mode for quite a while it will usually make that ejecting noise. It doesnt make the ejecting noise evreytime i open it just sometimes. Is this normal HELP

    Yes, it's normal.
    Apple released a firmware update a couple of years ago that was supposed to stop the drive from making that noise in certain models that were available then, but even the update didn't work all the time. The noise is completely harmless and not indicative of any problem. Just ignore it.

Maybe you are looking for