Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CaptureBitmap to Word
#1
Solved: 11 Years, 4 Months, 3 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: 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
#3
Solved: 11 Years, 4 Months, 3 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,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,811 07-18-2014, 03:25 AM
Last Post: bart02
  Inserting Images in the Word file. atulparate 2 6,753 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,280 03-01-2011, 09:49 PM
Last Post: supputuri

Forum Jump:


Users browsing this thread: 1 Guest(s)