Problem with document containing embedded OLE objects

View: New views
2 Messages — Rating Filter:   Alert me  

Problem with document containing embedded OLE objects

by William Bailey-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

I have created a small java application that embeds OpenOffice into a
java AWT frame utilising the OfficeBean.

This seems to function fine under all other circumstances apart from a
case that involves OO writer documents containing embedded OLE objects.

As a test case I created a blank document and embedded a pdf. This was
done through Insert -> OLE Object -> Further Type -> Create from file.

When this document is open in standalone OpenOffice I can successfully
open the pdf via the "open" menu item in the context menu that appears
over the embedded object.

When I open the same document in an embedded viewer via the OfficeBean's
loadFromURL() method, it is no longer possible to open the embedded pdf
(no "open" menu item appears in the OLE object's context menu, and
double-clicking the embedded object displays an OpenOffice error dialog
with the text "General Error").

As part of my testing, I attempted using other file types as an embedded
OLE object in my document (zip, mkv) but the problem remains solely when
using the OfficeBean viewer.

Are there any issues with documents containing embedded OLE objects and
the OfficeBean?

So far I have been able to find very little information on this issue
online.

BTW, I am using the latest version of OpenOffice (3.1.1) on Win XP.

Thanks for your time,

William Bailey

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...


Re: Problem with document containing embedded OLE objects

by Mikhail Voytenko :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I assume that the document you have loaded using OfficeBean is treated
as an embedded one itself. OOo does not allow to activate embedded
object in embedded object.

Normally loadComponentFromURL() does not mark document as embedded. So I
assume that OfficeBean does it itself explicitly by adding the according
parameter in MediaDescriptor.

Best regards,
Mikhail.

On 11/04/09 23:53, William Bailey wrote:

> Hello,
>
> I have created a small java application that embeds OpenOffice into a
> java AWT frame utilising the OfficeBean.
>
> This seems to function fine under all other circumstances apart from a
> case that involves OO writer documents containing embedded OLE objects.
>
> As a test case I created a blank document and embedded a pdf. This was
> done through Insert -> OLE Object -> Further Type -> Create from file.
>
> When this document is open in standalone OpenOffice I can successfully
> open the pdf via the "open" menu item in the context menu that appears
> over the embedded object.
>
> When I open the same document in an embedded viewer via the OfficeBean's
> loadFromURL() method, it is no longer possible to open the embedded pdf
> (no "open" menu item appears in the OLE object's context menu, and
> double-clicking the embedded object displays an OpenOffice error dialog
> with the text "General Error").
>
> As part of my testing, I attempted using other file types as an embedded
> OLE object in my document (zip, mkv) but the problem remains solely when
> using the OfficeBean viewer.
>
> Are there any issues with documents containing embedded OLE objects and
> the OfficeBean?
>
> So far I have been able to find very little information on this issue
> online.
>
> BTW, I am using the latest version of OpenOffice (3.1.1) on Win XP.
>
> Thanks for your time,
>
> William Bailey
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@...
> For additional commands, e-mail: dev-help@...
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...