<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic RE: How to  identify an  image is present in the word document? in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/How-to-identify-an-image-is-present-in-the-word-document/m-p/54470#M8981</link>
    <description>I uncommented the lines you mentioned above. Now it is able to identify the image.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks Michael&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Harish&lt;BR /&gt;RPA Developer&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Thu, 14 Jan 2021 17:08:00 GMT</pubDate>
    <dc:creator>HarishM2</dc:creator>
    <dc:date>2021-01-14T17:08:00Z</dc:date>
    <item>
      <title>How to  identify an  image is present in the word document?</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-identify-an-image-is-present-in-the-word-document/m-p/54464#M8975</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;How to&amp;nbsp; verify whether any image present in the word document or not?&lt;BR /&gt;&lt;BR /&gt;I tried Select All&amp;gt; Copy to clipboard &amp;gt;Get Clipboard but as a result I'm getting only text in the body.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Harish&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Harish&lt;BR /&gt;RPA Developer&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Jan 2021 21:40:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-identify-an-image-is-present-in-the-word-document/m-p/54464#M8975</guid>
      <dc:creator>HarishM2</dc:creator>
      <dc:date>2021-01-06T21:40:00Z</dc:date>
    </item>
    <item>
      <title>RE: How to  identify an  image is present in the word document?</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-identify-an-image-is-present-in-the-word-document/m-p/54465#M8976</link>
      <description>Hi Harish,&lt;BR /&gt;&lt;BR /&gt;That's an interesting challenge to have.&lt;BR /&gt;&lt;BR /&gt;I can't think of a simple way to do this, though it's likely possible if you or someone you know has a good understanding of VBA.&lt;BR /&gt;&lt;BR /&gt;In the event you don't it would be possible to use the Word VBO to save it as a PDF and then use the DX Asset from Boost Robotics (&lt;A href="https://digitalexchange.blueprism.com/dx/entry/58413/solution/utility---pdf" target="_blank" rel="noopener"&gt;https://digitalexchange.blueprism.com/dx/entry/58413/solution/utility---pdf&lt;/A&gt;) to get images. This asset can be downloaded from the previous link, but comes with an annual license cost of 249 euros.&lt;BR /&gt;&lt;BR /&gt;I'll keep thinking on it, but that's all that's coming to mind at the moment.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Ben Lyons&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 07 Jan 2021 08:40:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-identify-an-image-is-present-in-the-word-document/m-p/54465#M8976</guid>
      <dc:creator>Ben.Lyons1</dc:creator>
      <dc:date>2021-01-07T08:40:00Z</dc:date>
    </item>
    <item>
      <title>RE: How to  identify an  image is present in the word document?</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-identify-an-image-is-present-in-the-word-document/m-p/54466#M8977</link>
      <description>Hi Harish,&lt;BR /&gt;&lt;BR /&gt;I previously created something to convert a pdf to excel and afterwards list the images in the excel file in order to delete them. I have provided the code below that lists the image names in a table this would obviously need to be modified for use in word but should provide you a starting point. Ive included an example of how the code might look if used for word but this is untested so you might need to finish the development on it. Hope this helps &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;excel code:&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;Dim wb, ws, excel, sheet As Object&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;wb = GetWorkbook(Handle, Workbook)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;ws = GetWorksheet(Handle, Workbook, Worksheet)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;wb.Activate()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;ws.Activate()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;excel = ws.Application&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;sheet = excel.ActiveSheet&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;Dim Table As New DataTable&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;Table.Columns.Add("Name", GetType(String))&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;Dim image as Object&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;For Each image In wb.Worksheets(Worksheet).Shapes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;Table.Rows.Add(image.Name)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;Next&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;Images = Table&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;Possible word code (untested):&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;Dim d As Object = GetDocument(handle,documentname)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;Dim w As Object = d.Application&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;w.Activate()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;Dim Table As New DataTable&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;Table.Columns.Add("Name", GetType(String))&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;Dim image as Object&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;For Each image In w.ActiveDocument.Shapes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;Table.Rows.Add(image.Name)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;Next&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;Images = Table&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Michael ONeil&lt;BR /&gt;Technical Lead developer&lt;BR /&gt;Everis Consultancy&lt;BR /&gt;Europe/London&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 07 Jan 2021 13:18:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-identify-an-image-is-present-in-the-word-document/m-p/54466#M8977</guid>
      <dc:creator>michaeloneil</dc:creator>
      <dc:date>2021-01-07T13:18:00Z</dc:date>
    </item>
    <item>
      <title>RE: How to  identify an  image is present in the word document?</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-identify-an-image-is-present-in-the-word-document/m-p/54467#M8978</link>
      <description>Thanks for Responding. I will check&amp;nbsp; that asset in DX.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Harish&lt;BR /&gt;RPA Developer&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 12 Jan 2021 22:14:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-identify-an-image-is-present-in-the-word-document/m-p/54467#M8978</guid>
      <dc:creator>HarishM2</dc:creator>
      <dc:date>2021-01-12T22:14:00Z</dc:date>
    </item>
    <item>
      <title>RE: How to  identify an  image is present in the word document?</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-identify-an-image-is-present-in-the-word-document/m-p/54468#M8979</link>
      <description>Thanks for responding Michael. I tried the code but it is returning empty table.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Harish&lt;BR /&gt;RPA Developer&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 12 Jan 2021 22:16:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-identify-an-image-is-present-in-the-word-document/m-p/54468#M8979</guid>
      <dc:creator>HarishM2</dc:creator>
      <dc:date>2021-01-12T22:16:00Z</dc:date>
    </item>
    <item>
      <title>RE: How to  identify an  image is present in the word document?</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-identify-an-image-is-present-in-the-word-document/m-p/54469#M8980</link>
      <description>Hi Harish&lt;BR /&gt;&lt;BR /&gt;I had a quick test of it and looks like just needed a small tweak to make it work. The updated code is below, I have added in some additional code which is commented (highlighted in green) out as im not sure you will need it but there may be inline images need to be converted on you doc before they can be identified so just remove the comments if you need to use it but if not just leave the comment so the code is ignored. Remember to add in the parameters for the code stage with Handle, documentname as inputs and Images as the output collection. Good luck &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;Dim d As Object = GetDocument(handle,documentname)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;Dim w As Object = d.Application&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #00ff00;"&gt;'Dim iShape As object&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;w.Activate()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: #00ff00;"&gt;'For Each iShape In w.ActiveDocument.InLineShapes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #00ff00;"&gt;'iShape.ConvertToShape&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #00ff00;"&gt;'Next iShape&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;Dim dataTable As New Data.DataTable&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;dataTable.Columns.Add("Name", GetType(String))&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;Dim image as Object&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;For Each image In w.ActiveDocument.Shapes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;dataTable.Rows.Add(image.Name)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;Next&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;Images = dataTable&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Michael ONeil&lt;BR /&gt;Technical Lead developer&lt;BR /&gt;Everis Consultancy&lt;BR /&gt;Europe/London&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Jan 2021 15:13:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-identify-an-image-is-present-in-the-word-document/m-p/54469#M8980</guid>
      <dc:creator>michaeloneil</dc:creator>
      <dc:date>2021-01-14T15:13:00Z</dc:date>
    </item>
    <item>
      <title>RE: How to  identify an  image is present in the word document?</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-identify-an-image-is-present-in-the-word-document/m-p/54470#M8981</link>
      <description>I uncommented the lines you mentioned above. Now it is able to identify the image.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks Michael&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Harish&lt;BR /&gt;RPA Developer&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Jan 2021 17:08:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-identify-an-image-is-present-in-the-word-document/m-p/54470#M8981</guid>
      <dc:creator>HarishM2</dc:creator>
      <dc:date>2021-01-14T17:08:00Z</dc:date>
    </item>
  </channel>
</rss>

