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

Can't insert picture(bitmap) from clipboard into writer

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





PostPosted: Wed Aug 13, 2003 5:56 am    Post subject: Can't insert picture(bitmap) from clipboard into writer Reply with quote

Hi there,

How can I insert picrture(bitmap format in clipboard) into Writer from Visual Basic 6.

'vb 6 code
Set objServiceManagerW = CreateObject("com.sun.star.ServiceManager")
Set objDesktopW = objServiceManagerW.createInstance("com.sun.star.frame.Desktop")
Set objDocumentW = objDesktopW.LoadComponentFromURL(szURL, "_blank", 0, args)
Set objText = objDocumentW.GetText
Set objCursor = objText.createTextCursor
objText.insertString objCursor, "The first" & vbLf, False
objText.insertString objCursor, "Now line", False
'!!!!!!!
' objText.insertTextContent objCursor, Clipboard.GetData(vbCFBitmap), False
Clipboard.GetData(vbCFBitmap)

How can i paste clipboard content in Writer?

regards
CCG
Back to top
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