G
Guest
Hi All!!
Well guys i am making a VBA application using Vb.Net ..the Problem is this that i am Inserting an Image in the Word Document using the following code:
"Dim dlg As New Windows.Forms.OpenFileDialo
dim frm as frmchil
dlg.Title = "Insert Picture
dlg.InitialDirectory = Application.StartupPath & "\Library\Pictures
dlg.Filter = "Bitmap Files(*.BMP)|*.bmp|JPEG (*.JPG;*.JPEG;*.JPE;*.JFIF)|*.jpg;*.jpeg;*.jpe;*.jfif|GIF(*.GIF)|*.gif |TIFF (*.TIF;*.TIFF)|*.tif;*.tiff|PNG (*.PNG)|(*.png)|ICO (*.ICO)|(*.ico)|All Picture Files|*.Bmp;*.gif;*.jpg;*.jpeg;*.jpe;*.jfif;*.tif;*.tiff;*.png;*.ico|All Files |*.*
dlg.FilterIndex =
If dlg.ShowDialog = Windows.Forms.DialogResult.OK The
frm.obdoc.Shapes.AddPicture(dlg.FileName, , , 0, 0, 400, 200, frm.obdoc.Application.Selection.Range
''''''''''''''''''''''''''''''''''obdoc is word.documen
End If
Now i want when there is a picture on the Document i want to change the any color of my choice to the desired color
there is a way we have to use DrawImage Method of Graphics object of Word. but i dont know how to get the Graphics object in vba and apply the function.......kindly Help.
Thanks in Advance
Well guys i am making a VBA application using Vb.Net ..the Problem is this that i am Inserting an Image in the Word Document using the following code:
"Dim dlg As New Windows.Forms.OpenFileDialo
dim frm as frmchil
dlg.Title = "Insert Picture
dlg.InitialDirectory = Application.StartupPath & "\Library\Pictures
dlg.Filter = "Bitmap Files(*.BMP)|*.bmp|JPEG (*.JPG;*.JPEG;*.JPE;*.JFIF)|*.jpg;*.jpeg;*.jpe;*.jfif|GIF(*.GIF)|*.gif |TIFF (*.TIF;*.TIFF)|*.tif;*.tiff|PNG (*.PNG)|(*.png)|ICO (*.ICO)|(*.ico)|All Picture Files|*.Bmp;*.gif;*.jpg;*.jpeg;*.jpe;*.jfif;*.tif;*.tiff;*.png;*.ico|All Files |*.*
dlg.FilterIndex =
If dlg.ShowDialog = Windows.Forms.DialogResult.OK The
frm.obdoc.Shapes.AddPicture(dlg.FileName, , , 0, 0, 400, 200, frm.obdoc.Application.Selection.Range
''''''''''''''''''''''''''''''''''obdoc is word.documen
End If
Now i want when there is a picture on the Document i want to change the any color of my choice to the desired color
there is a way we have to use DrawImage Method of Graphics object of Word. but i dont know how to get the Graphics object in vba and apply the function.......kindly Help.
Thanks in Advance