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.

 

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);

 

 

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

 

We are using OpenOffice 1.1.3 and Windows XP.

 

Does any body have any ideas?

 

Thanks

 

Bob Crothers

Net-linx

 

Reply via email to