J
Jiao
I am trying to paste an image in a pictureBox in vb.NET to a Word document.
When using the paste method, the image quality in Word is bad. If using
pasteSpecial method, all the dataType, like wdPasteBitmap or
wdPasteEnhancedMetafile, etc. are not available.
The code is as follows:
wdApp = CreateObject("Word.Application")
wordD = wdApp.Documents.Add
My.Computer.Clipboard.Clear()
My.Computer.Clipboard.SetImage(bm)
wordD.Sections.Item(1).Range.PasteSpecial(Link:=False,
DataType:=Word.WdPasteDataType.wdPasteShape)
Does Anyone know how?
I also find that when using pasteSpecial to paste a picture to Word, the
foramt of JPeg, Png, etc are not available until you cut the pasted picture
and do the pastSpecial again.
Thanks.
When using the paste method, the image quality in Word is bad. If using
pasteSpecial method, all the dataType, like wdPasteBitmap or
wdPasteEnhancedMetafile, etc. are not available.
The code is as follows:
wdApp = CreateObject("Word.Application")
wordD = wdApp.Documents.Add
My.Computer.Clipboard.Clear()
My.Computer.Clipboard.SetImage(bm)
wordD.Sections.Item(1).Range.PasteSpecial(Link:=False,
DataType:=Word.WdPasteDataType.wdPasteShape)
Does Anyone know how?
I also find that when using pasteSpecial to paste a picture to Word, the
foramt of JPeg, Png, etc are not available until you cut the pasted picture
and do the pastSpecial again.
Thanks.