<?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 Remove Blank lines from a word file in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Remove-Blank-lines-from-a-word-file/m-p/83704#M34946</link>
    <description>&lt;SPAN&gt;Hello all!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is my situation...I have a Word file, and i want to remove blank lines in this file using BluePrism,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Mohamed Boukahla&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Tue, 24 Mar 2020 16:29:00 GMT</pubDate>
    <dc:creator>MohamedBoukahla</dc:creator>
    <dc:date>2020-03-24T16:29:00Z</dc:date>
    <item>
      <title>Remove Blank lines from a word file</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Remove-Blank-lines-from-a-word-file/m-p/83704#M34946</link>
      <description>&lt;SPAN&gt;Hello all!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is my situation...I have a Word file, and i want to remove blank lines in this file using BluePrism,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Mohamed Boukahla&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 24 Mar 2020 16:29:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Remove-Blank-lines-from-a-word-file/m-p/83704#M34946</guid>
      <dc:creator>MohamedBoukahla</dc:creator>
      <dc:date>2020-03-24T16:29:00Z</dc:date>
    </item>
    <item>
      <title>RE: Remove Blank lines from a word file</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Remove-Blank-lines-from-a-word-file/m-p/83705#M34947</link>
      <description>Duplicate the Find Text action of MS Word VBO, add one more input of type text called &lt;STRONG&gt;replacement&amp;nbsp;&lt;/STRONG&gt;then modify line 12 &amp;amp; 22. Finally can call it from your process twice with find value as&amp;nbsp;&lt;SPAN&gt;^p^p &amp;amp; replacement as&amp;nbsp;^p.&lt;/SPAN&gt;
&lt;PRE class="language-markup"&gt;Dim d As Object = GetDocument(handle,document_name)
Dim w As Object = d.Application
Dim s As Object = w.Selection
Dim f As Object = s.Find

Try

f.ClearFormatting
With f
	.Text = Text
	.Replacement.Text = replacement
	.Forward = True
	.Wrap = 1 'wdFindContinue
	.Format = False
	.MatchCase = match_case
	.MatchWholeWord = match_whole_word
	.MatchWildcards = False
	.MatchSoundsLike = False
	.MatchAllWordForms = False
End With
found = f.Execute(Replace:=2)

Catch ex As Exception

found = False

Finally

d = Nothing
w = Nothing
s = Nothing
f = Nothing

End try​&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Gopal Bhaire&lt;BR /&gt;Analyst&lt;BR /&gt;Accenture&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 25 Mar 2020 13:03:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Remove-Blank-lines-from-a-word-file/m-p/83705#M34947</guid>
      <dc:creator>GopalBhaire</dc:creator>
      <dc:date>2020-03-25T13:03:00Z</dc:date>
    </item>
  </channel>
</rss>

