<?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 If you have a region definedâ€¦ in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/How-to-Region-dynamic-as-an-attachment-through-Mail/m-p/93125#M42763</link>
    <description>&lt;P&gt;If you have a region defined, you can use a read stage with "Read Image" to save it to an image type Data Item. From there, you'll need a custom code stage to save the image.&lt;/P&gt;
&lt;P&gt;Namespace Imports: &lt;BR /&gt;System.Drawing.Imaging&lt;/P&gt;
&lt;P&gt;Inputs: &lt;BR /&gt;Image - Image &lt;BR /&gt;Path - Text &lt;BR /&gt;Image Format - Text &lt;BR /&gt;&lt;BR /&gt;Outputs: &lt;BR /&gt;Success - Flag &lt;BR /&gt;Message - Text &lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE class="language-markup"&gt;Success = True 
Try Dim Format As ImageFormat 
	Select Case Image_Format.ToUpper 
	
	Case "BMP": 
	Format = ImageFormat.Bmp 
	
	Case "GIF": 
	Format = ImageFormat.Gif 
	
	Case "JPG": 
	Format = ImageFormat.Jpeg 
	
	Case "JPEG": 
	Format = ImageFormat.Jpeg 
	
	Case "PNG": 
	Format = ImageFormat.Png 
	
	Case "TIF": 
	Format = ImageFormat.Tiff 
	
	Case "TIFF":
	Format = ImageFormat.Tiff 
	
	Case Else:
	
	Throw New Exception("Image format not recognized") 
	End Select 
	Image.Save(Path, Format) Catch e As Exception 
	Success = False 
	Message = e.Message 
End Try&lt;/PRE&gt;</description>
    <pubDate>Mon, 06 May 2019 19:31:00 GMT</pubDate>
    <dc:creator>AmiBarrett</dc:creator>
    <dc:date>2019-05-06T19:31:00Z</dc:date>
    <item>
      <title>How to Region(dynamic) as an attachment through Mail</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-Region-dynamic-as-an-attachment-through-Mail/m-p/93124#M42762</link>
      <description>Hi All,

Can i send the Captured Region as an attachment through email?

If possible then how to achieve the same.

if not then please suggest how to capture and send the image/region(print screenshot from a browser )

Â&amp;nbsp;

ThanksÂ&amp;nbsp;

Ritesh</description>
      <pubDate>Mon, 06 May 2019 12:23:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-Region-dynamic-as-an-attachment-through-Mail/m-p/93124#M42762</guid>
      <dc:creator>RiteshHanda</dc:creator>
      <dc:date>2019-05-06T12:23:00Z</dc:date>
    </item>
    <item>
      <title>If you have a region definedâ€¦</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-Region-dynamic-as-an-attachment-through-Mail/m-p/93125#M42763</link>
      <description>&lt;P&gt;If you have a region defined, you can use a read stage with "Read Image" to save it to an image type Data Item. From there, you'll need a custom code stage to save the image.&lt;/P&gt;
&lt;P&gt;Namespace Imports: &lt;BR /&gt;System.Drawing.Imaging&lt;/P&gt;
&lt;P&gt;Inputs: &lt;BR /&gt;Image - Image &lt;BR /&gt;Path - Text &lt;BR /&gt;Image Format - Text &lt;BR /&gt;&lt;BR /&gt;Outputs: &lt;BR /&gt;Success - Flag &lt;BR /&gt;Message - Text &lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE class="language-markup"&gt;Success = True 
Try Dim Format As ImageFormat 
	Select Case Image_Format.ToUpper 
	
	Case "BMP": 
	Format = ImageFormat.Bmp 
	
	Case "GIF": 
	Format = ImageFormat.Gif 
	
	Case "JPG": 
	Format = ImageFormat.Jpeg 
	
	Case "JPEG": 
	Format = ImageFormat.Jpeg 
	
	Case "PNG": 
	Format = ImageFormat.Png 
	
	Case "TIF": 
	Format = ImageFormat.Tiff 
	
	Case "TIFF":
	Format = ImageFormat.Tiff 
	
	Case Else:
	
	Throw New Exception("Image format not recognized") 
	End Select 
	Image.Save(Path, Format) Catch e As Exception 
	Success = False 
	Message = e.Message 
End Try&lt;/PRE&gt;</description>
      <pubDate>Mon, 06 May 2019 19:31:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-Region-dynamic-as-an-attachment-through-Mail/m-p/93125#M42763</guid>
      <dc:creator>AmiBarrett</dc:creator>
      <dc:date>2019-05-06T19:31:00Z</dc:date>
    </item>
  </channel>
</rss>

