• 14 years ago

    i'm facing problem on how to display my drawing on picturebox to MS word file. i have been trying to use clipboard but only few numbers are displayed on ms word file.

    here are my sourcecode:

    Public Sub cmdDisp_Click()
    picDraw.AutoRedraw = True
    picDraw.Picture = picDraw.Image
    'Clipboard.SetData picDraw.Picture, vbCFDIB
    SavePicture picDraw.Image, "c:\dot.bmp"
    Clipboard.SetData LoadPicture("c:\dot.bmp")
    Picture = Clipboard.GetData()
    Call mword.Documents.Add
     Call mword.Documents(1).SaveAs("c:\signature.doc")
    'mword.Selection.Font.size = 30
    Call mword.Selection.TypeText(Picture)
    Call mword.Quit
    End Sub

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).


Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Theory is when you know something, but it doesn't work. Practice is when something works, but you don't know why. Programmers combine theory and practice: Nothing works and they don't know why.”