[Java] Merging documents

Creating a macro - Writing a Script - Using the API (OpenOffice Basic, Python, BeanShell, JavaScript)
Post Reply
Glob
Posts: 6
Joined: Thu Sep 25, 2008 4:40 pm

[Java] Merging documents

Post by Glob »

Hello.
I'm trying to merge a document into another one, using Java and UNO on a Win32 OOo 2.2.

I translated some code snippets from Basic into Java, and I finally got something working using DispatchHelpers and UNO urls like ".uno:Paste".

The problem is: that DispatchHelper technique only works on visible documents, it just does nothing at all on hidden documents. I need something working with hidden docs.

So... what should I do? Upgrade to OOo2.4.x, call some functions to prepare the doc to be drawn on an hypothetical hidden backbuffer, or maybe try another technique? (XTransferable maybe?)

Thanks,

Glob
OOo 2.4.X on Ms Windows XP
Post Reply