Graphics challenge

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
 
S

Suzanne S. Barnhill

Since this NG has become the default venue for "general questions," you
probably won't get an answer here. Try
microsoft.public.word.drawing.graphics and/or one of the
microsoft.public.word.vba hierarchy.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

Vivek K Gupta said:
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.OpenFileDialog
dim frm as frmchild

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 = 2

If dlg.ShowDialog = Windows.Forms.DialogResult.OK Then
frm.obdoc.Shapes.AddPicture(dlg.FileName, , , 0, 0, 400,
200, frm.obdoc.Application.Selection.Range)
''''''''''''''''''''''''''''''''''obdoc is word.document

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..
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top