<?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 Your code isn't C#, it looks in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Why-this-complier-error-display/m-p/87942#M38583</link>
    <description>Your code isn't C#, it looks like VB.</description>
    <pubDate>Tue, 07 Nov 2017 14:15:00 GMT</pubDate>
    <dc:creator>John__Carter</dc:creator>
    <dc:date>2017-11-07T14:15:00Z</dc:date>
    <item>
      <title>Why this complier error display?</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Why-this-complier-error-display/m-p/87941#M38582</link>
      <description>Hi,

I want to use printscreen, so I checked this link.
&lt;A href="https://portal.blueprism.com/global-send-keys-printscreen" target="test_blank"&gt;https://portal.blueprism.com/global-send-keys-printscreen&lt;/A&gt;

1. Created an object.
2. Added "System.Windows.Forms.dll" at Initialise page, selected C# as language.
3. Added Data Item as filename and Code stage at Action page, then I wrote this code.

SendKeys.Send("{PRTSC}");
dim Screenshot As Image = Clipboard.GetImage();
Screenshot.Save(filename, System.Drawing.Imaging.ImageFormat.Jpeg);

But an error is displayed, I don't know why this error is displayed.
"Compiler error ; is needed."
# I attached the error.

Could you please tell me how to clear this error?

Thanks,
Akiko</description>
      <pubDate>Tue, 07 Nov 2017 07:44:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Why-this-complier-error-display/m-p/87941#M38582</guid>
      <dc:creator>AkikoImai1</dc:creator>
      <dc:date>2017-11-07T07:44:00Z</dc:date>
    </item>
    <item>
      <title>Your code isn't C#, it looks</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Why-this-complier-error-display/m-p/87942#M38583</link>
      <description>Your code isn't C#, it looks like VB.</description>
      <pubDate>Tue, 07 Nov 2017 14:15:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Why-this-complier-error-display/m-p/87942#M38583</guid>
      <dc:creator>John__Carter</dc:creator>
      <dc:date>2017-11-07T14:15:00Z</dc:date>
    </item>
    <item>
      <title>Hi John,</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Why-this-complier-error-display/m-p/87943#M38584</link>
      <description>Hi John,
Thank you for your reply.
I think so too, but I received another errors if I use VB.
So I tried to use C#, and then there was this error only.
Do you know how to write codes in this case (=using printscreen) ?
Thanks,
Akiko</description>
      <pubDate>Wed, 08 Nov 2017 08:46:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Why-this-complier-error-display/m-p/87943#M38584</guid>
      <dc:creator>AkikoImai1</dc:creator>
      <dc:date>2017-11-08T08:46:00Z</dc:date>
    </item>
    <item>
      <title>Hi John,</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Why-this-complier-error-display/m-p/87944#M38585</link>
      <description>Hi John,
For reference your advice, the following code works for me!
System.Windows.Forms.SendKeys.Send(""{PRTSC}"")
dim Screenshot As Image = System.Windows.Forms.Clipboard.GetImage()
Screenshot.Save(filename, System.Drawing.Imaging.ImageFormat.Jpeg)
Thank you!
Akiko</description>
      <pubDate>Wed, 08 Nov 2017 08:56:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Why-this-complier-error-display/m-p/87944#M38585</guid>
      <dc:creator>AkikoImai1</dc:creator>
      <dc:date>2017-11-08T08:56:00Z</dc:date>
    </item>
  </channel>
</rss>

