<?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: Get Number of pages from a Word document in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Get-Number-of-pages-from-a-Word-document/m-p/58908#M12659</link>
    <description>&lt;P&gt;Great !&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Thank you &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/1353"&gt;@EricWilson1&lt;/a&gt; !​​&lt;/P&gt;
​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Erjola Mema&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Tue, 14 Jun 2022 12:32:00 GMT</pubDate>
    <dc:creator>ErjolaMema</dc:creator>
    <dc:date>2022-06-14T12:32:00Z</dc:date>
    <item>
      <title>Get Number of pages from a Word document</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Get-Number-of-pages-from-a-Word-document/m-p/58904#M12655</link>
      <description>&lt;P&gt;Hi everyone!&lt;/P&gt;
&lt;P&gt;Hope you are doing okay!&lt;/P&gt;
&lt;P&gt;
&lt;/P&gt;&lt;P&gt;I have a question:&lt;/P&gt;
&lt;P&gt;How can I get the number of pages into a WORD document?&lt;/P&gt;
&lt;P&gt;
&lt;/P&gt;&lt;P&gt;Thank you for your time!&lt;BR /&gt;Erjola&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Erjola Mema&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Jun 2022 10:25:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Get-Number-of-pages-from-a-Word-document/m-p/58904#M12655</guid>
      <dc:creator>ErjolaMema</dc:creator>
      <dc:date>2022-06-14T10:25:00Z</dc:date>
    </item>
    <item>
      <title>RE: Get Number of pages from a Word document</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Get-Number-of-pages-from-a-Word-document/m-p/58905#M12656</link>
      <description>Hi Erjola,&lt;BR /&gt;&lt;BR /&gt;You can do this in a couple of steps:&lt;BR /&gt;
&lt;OL&gt;
&lt;LI&gt;Import, or ensure you have, the MS Word VBO from the Program Files&lt;/LI&gt;
&lt;LI&gt;Create a new version of this VBO called "MS Word VBO - Extended" - to align with our best practices&lt;/LI&gt;
&lt;LI&gt;Create a new action called "Count Document Pages" with the following detail:
&lt;OL&gt;
&lt;LI&gt;Inputs: [handle] and [documentName]&lt;/LI&gt;
&lt;LI&gt;Process Flow: Start &amp;gt; Call CheckInstanceHandle Page &amp;gt; Code Stage &amp;gt; End&lt;/LI&gt;
&lt;LI&gt;Code Stage
&lt;OL&gt;
&lt;LI&gt;'Declare object for code use&lt;BR /&gt;Dim doc as Object = GetDocument(handle,documentName)&lt;BR /&gt;'Returns the number of pages in the document associated with the range (whole document).&lt;BR /&gt;result = doc.Range.Information(4)&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;LI&gt;Outputs: Result&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
This will allow you to count the number of pages, if you need any more actions let me know&lt;BR /&gt;&lt;BR /&gt;All the best,&lt;BR /&gt;&lt;BR /&gt;James&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;James McLintock Program Lead&lt;BR /&gt;Intelligent Automation, Program Lead&lt;BR /&gt;Blue Prism&lt;BR /&gt;Europe/London&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Jun 2022 11:04:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Get-Number-of-pages-from-a-Word-document/m-p/58905#M12656</guid>
      <dc:creator>JamesMcLintock</dc:creator>
      <dc:date>2022-06-14T11:04:00Z</dc:date>
    </item>
    <item>
      <title>RE: Get Number of pages from a Word document</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Get-Number-of-pages-from-a-Word-document/m-p/58906#M12657</link>
      <description>Since &lt;A class="user-content-mention" data-sign="@" data-contactkey="fc45ab73-e9da-4f41-ae2c-d0948286a58c" data-tag-text="@James McLintock" href="https://community.blueprism.com/people/james-mclintock1" data-itemmentionkey="9e741508-7cd6-4b43-8601-d9ee6be45fd6"&gt;@James McLintock&lt;/A&gt; went through the work of documenting the code to get the page count, we've gone ahead and updated the official MS Word VBO on the Digital Exchange to include this capability.&lt;BR /&gt;&lt;BR /&gt;You can find the latest MS Word VBO &lt;A href="https://digitalexchange.blueprism.com/dx/entry/3439/solution/ms-word-vbo" target="_blank" rel="noopener"&gt;here&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;NOTE: We went ahead and added actions for getting the count of paragraphs, lines, and words in the document too.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Eric Wilson&lt;BR /&gt;Director, Integrations and Enablement&lt;BR /&gt;Blue Prism Digital Exchange&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Jun 2022 12:29:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Get-Number-of-pages-from-a-Word-document/m-p/58906#M12657</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2022-06-14T12:29:00Z</dc:date>
    </item>
    <item>
      <title>RE: Get Number of pages from a Word document</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Get-Number-of-pages-from-a-Word-document/m-p/58907#M12658</link>
      <description>&lt;P&gt;It worked fine!&lt;/P&gt;
&lt;P&gt;Thank you &lt;A class="user-content-mention" data-sign="@" data-contactkey="fc45ab73-e9da-4f41-ae2c-d0948286a58c" data-tag-text="@James McLintock" href="https://community.blueprism.com/people/james-mclintock1" data-itemmentionkey="b612eb72-5583-44a1-9be0-b0f95e5c5dc5"&gt;@James McLintock&lt;/A&gt; !&lt;/P&gt;
​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Erjola Mema&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Jun 2022 12:30:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Get-Number-of-pages-from-a-Word-document/m-p/58907#M12658</guid>
      <dc:creator>ErjolaMema</dc:creator>
      <dc:date>2022-06-14T12:30:00Z</dc:date>
    </item>
    <item>
      <title>RE: Get Number of pages from a Word document</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Get-Number-of-pages-from-a-Word-document/m-p/58908#M12659</link>
      <description>&lt;P&gt;Great !&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Thank you &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/1353"&gt;@EricWilson1&lt;/a&gt; !​​&lt;/P&gt;
​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Erjola Mema&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Jun 2022 12:32:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Get-Number-of-pages-from-a-Word-document/m-p/58908#M12659</guid>
      <dc:creator>ErjolaMema</dc:creator>
      <dc:date>2022-06-14T12:32:00Z</dc:date>
    </item>
    <item>
      <title>RE: Get Number of pages from a Word document</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Get-Number-of-pages-from-a-Word-document/m-p/58909#M12660</link>
      <description>Thanks &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/833"&gt;@ewilson&lt;/a&gt; for sharing latest word VBO with us.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Nilesh​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Nilesh Jadhav &lt;BR /&gt;Senior RPA Specialist&lt;BR /&gt;ADP&lt;BR /&gt;India&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 20 Jun 2022 14:57:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Get-Number-of-pages-from-a-Word-document/m-p/58909#M12660</guid>
      <dc:creator>NileshJadhavBP</dc:creator>
      <dc:date>2022-06-20T14:57:00Z</dc:date>
    </item>
  </channel>
</rss>

