Re: [api-dev] OpenOffice 3.2.1 not printing on Windows Servers through the API

2011-01-03 Thread Mikhail Voytenko
Hi Herter, if it works well in Basic and does not work in Java application, it looks more like a threading problem. The basic scripts are executed in the main thread ( as well as the actions triggered from UI ). But in case a java application uses API through a bridge, an additional thread

Re: [api-dev] Embedded OpenOffice Writer inside Delphi form: closing external writer instance also closes embedded instance

2010-04-06 Thread Mikhail Voytenko
Hi Caleb, yes, actually it is designed so. If a scripting component is intended to let Office stay alive when the last UI-window has been closed, the component has to register itself as a TerminateListener on the Desktop object. Please use the following link to read more about it:

Re: [api-dev] OO3 makes files unusable when you work(some changes, save/resave, close/reopen) on them directly from the samba share.

2010-02-25 Thread Mikhail Voytenko
Hi Aleksandar, in the link you have posted https://bugs.launchpad.net/ubuntu/+source/openoffice.org/+bug/411248 it is mentioned that this is a Samba problem, that is solved by degrading the Samba version in Ubuntu. OOo has this problem reported in the following issue

Re: [api-dev] Re: IOException OOo 3.1.1

2010-01-21 Thread Mikhail Voytenko
Hi Petteri, That sounds very strange, I have never heard about such behavior. From the first view I would suspect that the closing of the component starts an asynchronous action that prevents a successful object destruction. Are you using the standard OOo build or the one that is provided by

Re: [api-dev] exporting png via UNO

2009-12-18 Thread Mikhail Voytenko
Hi On 12/17/09 17:14, Mikhail Voytenko wrote: Hi, an Impress document can just be exported to PNG using the related filter. Writer and Spreadsheet documents do not have such export filter. I would suggest to use ::com::sun::star::datatransfer::XTransferable interface implemented

Re: [api-dev] exporting png via UNO

2009-12-17 Thread Mikhail Voytenko
Hi, an Impress document can just be exported to PNG using the related filter. Writer and Spreadsheet documents do not have such export filter. I would suggest to use ::com::sun::star::datatransfer::XTransferable interface implemented by the model. Please see the following link for details.

Re: [api-dev] loadcomponentfromurl

2009-11-09 Thread Mikhail Voytenko
/09 10:26, Juergen Schmidt wrote: Mikhail Voytenko wrote: Hi, On 11/06/09 08:50, Juergen Schmidt wrote: Ariel Constenla-Haile wrote: Hello Wei, On Thursday 05 November 2009, 22:51, Wei Min Teo wrote: I'm not going to use any filters or perhaps it automatically uses a default filter. Anyway

Re: [api-dev] loadcomponentfromurl

2009-11-06 Thread Mikhail Voytenko
Hi, On 11/06/09 08:50, Juergen Schmidt wrote: Ariel Constenla-Haile wrote: Hello Wei, On Thursday 05 November 2009, 22:51, Wei Min Teo wrote: I'm not going to use any filters or perhaps it automatically uses a default filter. Anyway, to clarify, I think my problem occurs with opening *.doc

Re: [api-dev] password protected files

2009-11-04 Thread Mikhail Voytenko
Hi Wei Min, it depends from the API you are using. I suspect that you are using loadComponentFromURL(), in this case you can provide the InteractionHandler in the MediaDescriptor, the InteractionHandler would handle the document password request in this case. If the standard InteractionHandler

Re: [api-dev] How to move a file from one location to another

2009-07-06 Thread Mikhail Voytenko
Hi Philipp, On 07/06/09 11:25, Vil wrote: Hi, I obviously stumbled across the new locking mechanism (which means I failed at implementing it under 3.0 in the first place ;-)) My intention is to move a open document from one location to a new one. What are the steps I have to make, in order to

Re: [api-dev] Problems with handling a xTextEmbeddedObject

2009-06-22 Thread Mikhail Voytenko
Hello Ariel, Benjamin, On 06/21/09 20:06, Ariel Constenla-Haile wrote: Here are some doubts I had when looking at the code that used to work fine in OOo 2.x: * if you see the C++ code attached, in previous versions I had to change first the size of the BaseFrame object's shape (that is,

Re: [api-dev] How to reload current opened document via API

2009-06-05 Thread Mikhail Voytenko
Hi Benjamin, Sorry, but editing of a document is not allowed if it is already edited by the office. I assume that you could reach it since OOo3.0.x does not use system file locking, so the document file can be edited in parallel. This is actually the reason why OOo3.1 supports the system file

Re: [api-dev] In memory documents

2009-05-25 Thread Mikhail Voytenko
-- Sun Microsystems GmbHMikhail Voytenko Nagelsweg 55 Software Engineer 20097 HamburgPhone: (+49 40)23646 500 Germany Fax: (+49 40)23646 550 http://www.sun.de

Re: [api-dev] Problem with my Eventhandler under OOWriter 3.x (Exception)

2009-04-29 Thread Mikhail Voytenko
...@api.openoffice.org -- Sun Microsystems GmbHMikhail Voytenko Nagelsweg 55 Software Engineer 20097 HamburgPhone: (+49 40)23646 500 Germany Fax: (+49 40)23646 550 http://www.sun.de

Re: [api-dev] Internal Names of all file formats

2009-04-28 Thread Mikhail Voytenko
Hi Raman, The set of supported types depends from the components you have installed. You can instantiate the com.sun.star.document.TypeDetection service and use ::com::sun::star::container::XNameAccess::getElementNames() call to get the list of available types. Best regards, Mikhail. On

Re: [api-dev] Re: How to access the Storage of an opened OOo document?

2009-04-16 Thread Mikhail Voytenko
Hi Giuseppe, On 04/15/09 20:14, Giuseppe Castagno wrote: I guess that if I can open the substorage, I can open the contained streams as well. Usually yes, but in case it is a stream in the storage you get from document, it might be locked as well. Best regards, Mikhail.

Re: [api-dev] Re: How to access the Storage of an opened OOo document?

2009-04-14 Thread Mikhail Voytenko
, this is a long message, so please be patient ;-). Mikhail Voytenko wrote: Hi, indeed, the usage of XStorageBasedDocument is the correct approach to get the storage the document is based on. It allows get the storage implementation related to the package format. META-INF/manifest.xml stream

Re: [api-dev] OLE SO_ACtiveX C#

2009-04-02 Thread Mikhail Voytenko
Microsystems GmbHMikhail Voytenko Nagelsweg 55 Software Engineer 20097 HamburgPhone: (+49 40)23646 500 Germany Fax: (+49 40)23646 550 http://www.sun.demailto:mikhail.voite...@sun.com Sitz

Re: [api-dev] Re: How to access the Storage of an opened OOo document?

2009-04-02 Thread Mikhail Voytenko
an open document. [snip] regards, michael -- Sun Microsystems GmbHMikhail Voytenko Nagelsweg 55 Software Engineer 20097 HamburgPhone: (+49 40)23646 500 Germany Fax: (+49 40)23646 550 http://www.sun.de