• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 157
  • Last Modified:

How to find numebr of images in word document using c#

Hi Team,

I have word document.In that i am trying to find out number of images present using c# code.

Can u plz provide code how to do?
0
mannevenu26
Asked:
mannevenu26
1 Solution
 
Johny BravoCommented:
Check this. Haven't tested

 object missing = Type.Missing;
        object FileName = Server.MapPath("~/Folder/MyWord.docx");
        object readOnly = true;
        m_word = new Application();
        m_word.Documents.Open(ref FileName,
                                ref missing, ref readOnly, ref missing, ref missing,
                                ref missing, ref missing, ref missing, ref missing,
                                ref missing, ref missing, ref missing, ref missing, ref missing,ref missing,ref missing);

int imgCount = m_word.ActiveDocument.InlineShapes.Count;
0
 
mannevenu26Author Commented:
can u plz give full example
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now