<?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 check page numbers are present are not in the word document? in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/How-to-check-page-numbers-are-present-are-not-in-the-word/m-p/46009#M2094</link>
    <description>If this is a solution that you need for a specific document as opposed to a generic solution that can be used across multiple documents, I would look into using surface automation, since that is the "spy mode" (region) that most matches the "visual" page number that you are looking for.&lt;BR /&gt;&lt;BR /&gt;If the Word document can be saved as an XML document you can search the XML version of that doc to see if you have the "page number" element:&lt;BR /&gt;
&lt;DIV class="media" style="overflow: hidden; zoom: 1;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="12366.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/12535iC3523CD9AAE198B9/image-size/large?v=v2&amp;amp;px=999" role="button" title="12366.png" alt="12366.png" /&gt;&lt;/span&gt;&lt;BR /&gt;If you can predict what other numbers or text may be present in the header or footer along with your page number, you can try using regex to clean/remove that text, leaving you with just the page number.&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;James Man&lt;BR /&gt;Professional Services&lt;BR /&gt;Blue Prism&lt;BR /&gt;Asia/Hong_Kong&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Thu, 14 Jan 2021 01:30:00 GMT</pubDate>
    <dc:creator>james.man</dc:creator>
    <dc:date>2021-01-14T01:30:00Z</dc:date>
    <item>
      <title>How to check page numbers are present are not in the word document?</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-check-page-numbers-are-present-are-not-in-the-word/m-p/46008#M2093</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;I have some vb.net code to read page number in word but the problem is whether the page numbers are present visually or not. code&amp;nbsp; is reading the page numbers&amp;nbsp; and giving me the page count But What I 'm really looking is to check&amp;nbsp; the page number is present visually or not? and update the data item accordingly.&lt;BR /&gt;&lt;BR /&gt;I know I can read Header and Footer text and&amp;nbsp; check any number present there. But the problem with that is&amp;nbsp; here is possibility that Header and footer may have numbers&amp;nbsp; appended to end of the text. So Its not reliable to use the Header and Footer text.&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;Is there a best way to do it?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Harish&lt;/P&gt;&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:03:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-check-page-numbers-are-present-are-not-in-the-word/m-p/46008#M2093</guid>
      <dc:creator>HarishM2</dc:creator>
      <dc:date>2021-01-12T22:03:00Z</dc:date>
    </item>
    <item>
      <title>RE: How to check page numbers are present are not in the word document?</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-check-page-numbers-are-present-are-not-in-the-word/m-p/46009#M2094</link>
      <description>If this is a solution that you need for a specific document as opposed to a generic solution that can be used across multiple documents, I would look into using surface automation, since that is the "spy mode" (region) that most matches the "visual" page number that you are looking for.&lt;BR /&gt;&lt;BR /&gt;If the Word document can be saved as an XML document you can search the XML version of that doc to see if you have the "page number" element:&lt;BR /&gt;
&lt;DIV class="media" style="overflow: hidden; zoom: 1;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="12366.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/12535iC3523CD9AAE198B9/image-size/large?v=v2&amp;amp;px=999" role="button" title="12366.png" alt="12366.png" /&gt;&lt;/span&gt;&lt;BR /&gt;If you can predict what other numbers or text may be present in the header or footer along with your page number, you can try using regex to clean/remove that text, leaving you with just the page number.&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;James Man&lt;BR /&gt;Professional Services&lt;BR /&gt;Blue Prism&lt;BR /&gt;Asia/Hong_Kong&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Jan 2021 01:30:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-check-page-numbers-are-present-are-not-in-the-word/m-p/46009#M2094</guid>
      <dc:creator>james.man</dc:creator>
      <dc:date>2021-01-14T01:30:00Z</dc:date>
    </item>
    <item>
      <title>RE: How to check page numbers are present are not in the word document?</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-check-page-numbers-are-present-are-not-in-the-word/m-p/46010#M2095</link>
      <description>Thanks james. I checked in to XML in the past but Page element will give some thing always even if the page number is not displayed in word. So it will be ruled out.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Looks like&amp;nbsp; surface automation is the only option. If we are not able to predict the pattern of page numbers.&lt;BR /&gt;&lt;BR /&gt;&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 13:34:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-check-page-numbers-are-present-are-not-in-the-word/m-p/46010#M2095</guid>
      <dc:creator>HarishM2</dc:creator>
      <dc:date>2021-01-14T13:34:00Z</dc:date>
    </item>
    <item>
      <title>RE: How to check page numbers are present are not in the word document?</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-check-page-numbers-are-present-are-not-in-the-word/m-p/46011#M2096</link>
      <description>Hi Harish,&lt;BR /&gt;&lt;BR /&gt;I think another alternative, should you not want to use the XML option might be the following:&lt;BR /&gt;&lt;BR /&gt;If you wish to read the h&lt;SPAN&gt;eader or/and footer text and check the page value to see if it's being displayed or not, I would do the following:&lt;BR /&gt;&lt;BR /&gt;1. have a consistent syntax in your header or footer, &lt;BR /&gt;2. use the action to read the footer/header, &lt;BR /&gt;3. then extract the actual page value and remove any extra details there might be (text or number before or after the actual page value).&lt;BR /&gt;&lt;BR /&gt;For instance you might want to have the following in the footer:&lt;BR /&gt;"Page &lt;STRONG&gt;2&lt;/STRONG&gt; - Extra details including numbers" . If you just wish to have the value "2" and ignore everything else, just extract it using the BP String functions already available. I have added a hyphen in the footer to separate the page value (that could be 1, 2, 3 or even more digits). You'd extract everything after "&lt;STRONG&gt;Page&lt;/STRONG&gt;" and stop at "&lt;STRONG&gt;-&lt;/STRONG&gt;" and then trim the page value to remove any space. This way, you should be able to see if there's a page value in the footer or not, and exclude any other irrelevant information.&lt;BR /&gt;&lt;BR /&gt;Let me know if it might help.&lt;BR /&gt;&lt;BR /&gt;Rachma&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Rachma Salim&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Jan 2021 16:25:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-check-page-numbers-are-present-are-not-in-the-word/m-p/46011#M2096</guid>
      <dc:creator>RachmaSalim</dc:creator>
      <dc:date>2021-01-14T16:25:00Z</dc:date>
    </item>
  </channel>
</rss>

