Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CaptureBitmap to Word
#2
Solved: 11 Years, 4 Months, 3 Weeks ago
Hi ,

I would suggest you to use "Automation Object Model (AOM)" for Word.

We can accomplish many custom requirements using AOM (as your current req.)

Try with below code , you will get it easily Smile

Example:
Code:
Dim wrd
  Const wrdalignpgraphcenter=1
  Set wrd=CreateObject("Word.Application")
  wrd.Visible=True
  Set wrddoc=wrd.Documents.Open ("give ur word doc. path",true)
  wrddoc.Range.Select
  Set wrddocsel=wrd.selection
   Set img= wrddocsel.InlineShapes.AddPicture("required Image path", false,true)
   img.Width=img.Width*2.50
   img.Height=img.Height*2.50
   img.range.paragraphformat.Alignment=wrdalignpgraphcenter
  wrddoc.Save
  wrddoc.close
  wrd.Quit
  Set wrd=nothing
  Set wrddoc=nothing
  Set wrddocsel=nothing
  Set img=nothing
Reply


Messages In This Thread
CaptureBitmap to Word - by Raj20091 - 09-25-2009, 08:25 PM
RE: CaptureBitmap to Word - by sreekanth chilam - 09-26-2009, 01:10 AM
RE: CaptureBitmap to Word - by Raj20091 - 09-28-2009, 07:30 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Check the word and get no. of times that word in the webpage Sandeep.san229 0 1,492 10-31-2018, 06:42 PM
Last Post: Sandeep.san229
  pageDown in word.application wannel 0 1,781 11-25-2016, 10:06 PM
Last Post: wannel
  Automating Word Docs bart02 0 2,812 07-18-2014, 03:25 AM
Last Post: bart02
  Inserting Images in the Word file. atulparate 2 6,754 04-09-2012, 12:44 PM
Last Post: swathi
  Is it possible to reduce the resolution(size) of .BMP file in CaptureBitMap function? nagappank 1 3,281 03-01-2011, 09:49 PM
Last Post: supputuri

Forum Jump:


Users browsing this thread: 2 Guest(s)