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

How do I write CaptureBitmap value to a word document? I want to be able to keep appending the word document with the screenshots.

Thanks,
Raj
Reply
#2
Solved: 10 Years, 8 Months, 4 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
#3
Solved: 10 Years, 8 Months, 4 Weeks ago
Sreekanth,
That worked like a charm. Thanks!
Where can I get more info on Automation Object Model

-Raj
Reply


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,176 10-31-2018, 06:42 PM
Last Post: Sandeep.san229
  pageDown in word.application wannel 0 1,666 11-25-2016, 10:06 PM
Last Post: wannel
  Automating Word Docs bart02 0 2,682 07-18-2014, 03:25 AM
Last Post: bart02
  Inserting Images in the Word file. atulparate 2 6,420 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,104 03-01-2011, 09:49 PM
Last Post: supputuri

Forum Jump:


Users browsing this thread: 1 Guest(s)