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





------- Additional comments from [EMAIL PROTECTED] Wed May  9 10:18:45 +0000 
2007 -------
 hi, here is an example routine that illustrates it, you should be able to 
paste an image into a wordpad or office document afterwards, but not openoffice

Private Sub makebmp(ByVal sender As System.Object, ByVal e As System.EventArgs) 
Handles makebmpc.Click
        Try
            'a very simple test routine to illustrate issue 
            'note you may need to import system.drawing
            'the below makes use of GDI+ calls wrapped up in .net objects

            'create a bitmap and get a handle on the graphcis
            Dim bmp As Bitmap 'a bitmap class object
            bmp = New Bitmap(250, 250) 'specifiy size
            Dim gr As Graphics = Graphics.FromImage(bmp) 'create a graphics 
object from the bitmap

            'draw stuff on the bitmap
            Dim r As New Rectangle(10, 100, 230, 50)
            gr.Clear(Color.Wheat)
            gr.DrawRectangle(Pens.DarkBlue, r)
            gr.FillRectangle(Brushes.LightBlue, r)
            gr.DrawString("A very simple test", New Font("Arial Black", 14), 
Brushes.Blue, r)
            gr.Dispose()

            'create a dataobject 
            Dim dataObj As DataObject = New DataObject

            'add the bitmap
            dataObj.SetData(DataFormats.Bitmap, True, bmp)

            'copy it to the clipboard
            Clipboard.SetDataObject(dataObj, True)

            'now try and paste it into a document. you can under wordpad, 
microshaft office etc.
            'but the paste icon does not appear in openoffice

        Catch ex As Exception
            MsgBox(ex.Message)
        End Try
    End Sub

---------------------------------------------------------------------
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to