OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

Need help using DataStreamRetriever please!

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
apmcintyre
Newbie
Newbie


Joined: 21 Jan 2005
Posts: 2

PostPosted: Fri Jan 21, 2005 10:36 am    Post subject: Need help using DataStreamRetriever please! Reply with quote

Hi,

Using Java 1.3 & OO 1.0.1

I'm using the DataStreamRetriever to access the Content Data Stream of a UCB Document Content (see http://ooo.ximian.com/lxr/source/api/odk/examples/DevelopersGuide/UCB/DataStreamRetriever.java#191).

The XInputStream comes back OK, but when I try to loadComponentFromURL using private:stream it doesn't work! I think it's something to do with PropertyValue below. I haven't much experience with this stuff!

Thanks.

****************************************************************************************************

XInputStream data = // use DataStreamRetriever...

PropertyValue aArgs[] = new PropertyValue[1];
aArgs[0] = new PropertyValue();
aArgs[0].Name = "InputStream";
aArgs[0].Handle = -1;
aArgs[0].Value = data;

XComponent aDoc = mxComponentLoader.loadComponentFromURL("private:stream", "_blank", 0, aArgs);
****************************************************************************************************
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group