Hi everybody! I have a base document which I save with different names (each time I'll do small changes in it) and then I want to open them so the user can make any final changes... The problem is that when I open the documents the last one is read-only... Any idea of why this is happening? And most of it... any idea of how should I do it to have all my new documents opened and writable?
This is the code... XStorable xStorable = (XStorable)UnoRuntime.queryInterface(XStorable.class, ac.getXCurrentComponent()); for (int i=0;i<docs;i++) { PropertyValue[] storeProps = new PropertyValue[1]; storeProps[0] = new PropertyValue(); storeProps[0].Name = "Overwrite"; storeProps[0].Value = "true"; xStorable.storeAsURL(sUrl, storeProps); } for (int i=0;i<docs;i++) { PropertyValue[] loadProps = new PropertyValue[1]; loadProps[0] = new PropertyValue(); loadProps[0].Name = "InteractionHandler"; XComponent xComponent = ac.getXComponentLoader().loadComponentFromURL(sUrl, "NewDoc"+i, i, loadProps); } P.D. At first my loop was like: For.. { Save... Open... } But left me all the new docs read-only This e-mail may contain confidential or privileged information. Any unauthorised copying, use or distribution of this information is strictly prohibited. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]