To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=85661





------- Additional comments from stuartpresc...@openoffice.org Wed Jul 14 
10:26:42 +0000 2010 -------
As a work-around for those developing .NET applications who want to be able copy
images to the clipboard and have OOo cope with this, try deliberately sticking a
DIB on the clipboard instead (or as well as) the System.Drawing.Bitmap.

e.g. the following code will allow you to place a system.drawing.bitmap "bmp" on
the clipboard in an OOo-compliant fashion.

      Dim ms As New IO.MemoryStream()
      Dim ms2 As New IO.MemoryStream()
      bmp.Save(ms, System.Drawing.Imaging.ImageFormat.Bmp)
      Dim b() As Byte = ms.GetBuffer()
      ms2.Write(b, 14, CInt(ms.Length - 14))
      ms.Position = 0
      Dim dataObject As New DataObject()
      dataObject.SetData(DataFormats.Bitmap, bmp)
      dataObject.SetData(DataFormats.Dib, ms2)
      Clipboard.SetDataObject(dataObject, False)

(Adapted from http://www.ureader.com/msg/14721255.aspx)

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@framework.openoffice.org
For additional commands, e-mail: issues-h...@framework.openoffice.org


---------------------------------------------------------------------
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org

Reply via email to