CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2001
    Posts
    41

    How to get the range of a picture in a word document using VB?

    My qestion is as following:
    In an application, I have to process a word document line by line, that is I should tell the content of every line of the document. There is no problem for the text. But How do I know the paragraph is text, picture or shape? If it is a picture of shapes, how can I get the range (from which line to which line) of the it? Any help is appreciated!


    http://www.vlinetech.com

  2. #2
    Join Date
    Jul 2001
    Posts
    7

    Re: How to get the range of a picture in a word document using VB?

    Use Shapes collection or InlineShapes collection. to get shape
    A collection of InlineShape objects that represent all the inline (in text layer) shapes (picture, OLE object or ActiveX controll) in a document, range, or selection.
    A collection of Shape objects represent all the shapes (in drawing layer) in a document or all the shapes in all the headers and footers in a document.


  3. #3
    Join Date
    Aug 2001
    Posts
    41

    Re: How to get the range of a picture in a word document using VB?

    Dear Krysia:

    Thank you very much for your quick help. But as you know, I am beginner on VBA, so would you like to show me some examples! Thank you again for your attention!

    http://www.vlinetech.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured