paste clipboard on ms word

  • 14 years ago

    i save my drawing on picturebox as clipboard and it's successfully be displayed on picture1.

    here is my sourcecode:

    Public Sub cmdDisp_Click()
    picDraw.AutoRedraw = True
    picDraw.Picture = picDraw.Image
    Clipboard.SetData picDraw.Picture, vbCFBitmap
    Picture1.Picture = Clipboard.GetData(2)
    Picture1.AutoSize = True






    However i need it to be displayed on ms word

    i  try this:

    Public Sub cmdDisp_Click()
    picDraw.AutoRedraw = True
    picDraw.Picture = picDraw.Image
    Clipboard.SetData picDraw.Picture, vbCFBitmap
    'Picture1.Picture = Clipboard.GetData(2)
    Call mword.Documents.Add
    Call mword.Selection.Paste
     Call mword.Documents(1).SaveAs("c:\sign.doc")
    'Picture1.AutoSize = True
    mword.Visible = True
    mword.Activate









    In stead of the picture on clipboard, "call mword.selection.paste" is displayed on ms word file. What should i do to obtain my picture?

    thx

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     


     

     

Post a reply

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

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

Contribute

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.

“Computer Science is no more about computers than astronomy is about telescopes.” - E. W. Dijkstra