Hello Bob !

See my comments inline ...

Hi,

We have a Java client which interacts with OpenOffice. One of the functions is to have OpenOffice save the document as a PDF. This works fine, except in one odd case. If the user holds down the ctrl key and double clicks on the toolbar, which detaches the toolbar, and then holds down the ctrl key down and double clicks again on the toolbar to reattach the toolbar, then the save PDF fails! Without the detach toolbar and reattach toolbar the code works fine.

Do you attach/deattach the toolbar during the save operation is running or before/afterwards ... ? The office isnt ready for concurrent using of UI and API(remote) at the same time. You should define the primary use case for your application.


The code looks like:

                xFrame.activate();

                PropertyValue[] props = new PropertyValue[2];

                props[0] = new PropertyValue();

                props[0].Name = "FilterName";

                props[0].Value = "writer_pdf_Export";

                props[1] = new PropertyValue();

                props[1].Name = "CompressionMode";

                props[1].Value = "1";

                storable.storeToURL(documentName, props);


For me the call "xFrame.activate() seams to be the problem. It influence the focus handling of the frame and so you work against the specification. Normaly Frame.activate() is called within the activation/deactivation events of the window and shouldnt be used via API.

After this call, OpenOffice crashes and displays the Error Report dialog. The pdf file is created but the length is 0.


Please send the error report so we can have a look on that.
Of course you should fill out crash report formular, so we know that this error report is related to this problem here.

We are using OpenOffice 1.1.3 and Windows XP.

Does any body have any ideas?

Thanks

Bob Crothers

Net-linx


Regards
Andreas

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to