<?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 Hello, in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/BO-Global-Code-Compiler-error-4-metadata-file-drv-could-not-be/m-p/68648#M21253</link>
    <description>Hello, 

No, it is not possible to reference a .drv file in Blue Prism code (which is .NET 4.0 based).</description>
    <pubDate>Mon, 19 Jun 2017 16:02:00 GMT</pubDate>
    <dc:creator>Denis__Dennehy</dc:creator>
    <dc:date>2017-06-19T16:02:00Z</dc:date>
    <item>
      <title>BO Global Code: Compiler error -4: metadata file (drv) could not be opened</title>
      <link>https://community.blueprism.com/t5/Product-Forum/BO-Global-Code-Compiler-error-4-metadata-file-drv-could-not-be/m-p/68647#M21252</link>
      <description>Hello,

I have a BO to which I have added external reference to "C:\Windows\System32\winspool.drv" and in Global Code section following lines:

[DllImport("winspool.drv", CharSet = CharSet.Auto, SetLastError = true)]
private static extern bool SetDefaultPrinter(string Name);

When check code I get the following error message:

Page: Initialise
Stage: Stage1
Type: Error
Action: Validate
Description: Compiler error at top section line -4: Metadata file 'c:\Windows\System32\winspool.drv' could not be opened -- 'An attempt was made to load a program with an incorrect format. '
Repairable: No

Is it possible to import drv files in BP global code? If not, is thetr any workaround for this? I need to retrieve the default printer in C# code block.

Best regards,
Mikko</description>
      <pubDate>Wed, 14 Jun 2017 15:03:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/BO-Global-Code-Compiler-error-4-metadata-file-drv-could-not-be/m-p/68647#M21252</guid>
      <dc:creator>MikkoKutilainen</dc:creator>
      <dc:date>2017-06-14T15:03:00Z</dc:date>
    </item>
    <item>
      <title>Hello,</title>
      <link>https://community.blueprism.com/t5/Product-Forum/BO-Global-Code-Compiler-error-4-metadata-file-drv-could-not-be/m-p/68648#M21253</link>
      <description>Hello, 

No, it is not possible to reference a .drv file in Blue Prism code (which is .NET 4.0 based).</description>
      <pubDate>Mon, 19 Jun 2017 16:02:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/BO-Global-Code-Compiler-error-4-metadata-file-drv-could-not-be/m-p/68648#M21253</guid>
      <dc:creator>Denis__Dennehy</dc:creator>
      <dc:date>2017-06-19T16:02:00Z</dc:date>
    </item>
    <item>
      <title>Please let me know too if you</title>
      <link>https://community.blueprism.com/t5/Product-Forum/BO-Global-Code-Compiler-error-4-metadata-file-drv-could-not-be/m-p/68649#M21254</link>
      <description>Please let me know too if you get a workaround or any solution to this</description>
      <pubDate>Mon, 19 Jun 2017 16:05:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/BO-Global-Code-Compiler-error-4-metadata-file-drv-could-not-be/m-p/68649#M21254</guid>
      <dc:creator>PrateekMehan</dc:creator>
      <dc:date>2017-06-19T16:05:00Z</dc:date>
    </item>
    <item>
      <title>Okey, thank you for your</title>
      <link>https://community.blueprism.com/t5/Product-Forum/BO-Global-Code-Compiler-error-4-metadata-file-drv-could-not-be/m-p/68650#M21255</link>
      <description>Okey, thank you for your reply. 
Br,
Mikko</description>
      <pubDate>Thu, 22 Jun 2017 08:03:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/BO-Global-Code-Compiler-error-4-metadata-file-drv-could-not-be/m-p/68650#M21255</guid>
      <dc:creator>MikkoKutilainen</dc:creator>
      <dc:date>2017-06-22T08:03:00Z</dc:date>
    </item>
  </channel>
</rss>

