{"id":29925,"date":"2021-07-31T13:38:57","date_gmt":"2021-07-31T13:38:57","guid":{"rendered":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/?p=29925"},"modified":"2025-07-23T05:50:08","modified_gmt":"2025-07-23T05:50:08","slug":"open-the-sage-300-ocx-screens-in-net-framework","status":"publish","type":"post","link":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2021\/07\/31\/open-the-sage-300-ocx-screens-in-net-framework\/","title":{"rendered":"Open the Sage 300 OCX screens in .Net Framework"},"content":{"rendered":"\n<p>Here\u2019s a very useful piece of code you can use to run a Sage 300 task without having to login manually or open the Sage 300 desktop.<\/p>\n\n\n\n<p><strong>New Stuff:<\/strong> <a href=\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2021\/07\/31\/new-web-screens-includes-in-accounts-receivable-300c-v2021-2\/\" target=\"_blank\" rel=\"noreferrer noopener\">New web screens includes in Accounts Receivable 300C v2021.2<\/a><\/p>\n\n\n\n<p>Suppose you have an import task in Sage 300 which has to be executed every day. So usually the user would have to login to Sage 300 every day and manually run the task. This can be very arduous. If you had a utility which you can simply schedule using windows scheduler to run the Sage 300 task every day, it would save a lot of manual work and that\u2019s exactly what the following piece of information will help you with.<\/p>\n\n\n\n<p>The following code has been done in VB.Net. You will need Visual Studio to proceed further.<\/p>\n\n\n\n<p>Below are the Visual Studio versions compatible with Sage 300 versions:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>Sage 300 version<\/strong><\/td><td><strong>Visual Studio version<\/strong><\/td><\/tr><tr><td>Sage 300 2019<\/td><td>2015<\/td><\/tr><tr><td>Sage 300 2020<\/td><td>2015, 2017<\/td><\/tr><tr><td>Sage 300 2021<\/td><td>2017<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>Open the visual studio with \u201cRun as administrator\u201d permission and create a windows application project in Visual Studio.<\/p>\n\n\n\n<ol class=\"wp-block-list\" type=\"1\"><li>You will need to add the following code in the project:<\/li><\/ol>\n\n\n\n<p>Public WithEvents dynamicScreen As AxHost<\/p>\n\n\n\n<ol class=\"wp-block-list\" type=\"1\" start=\"2\"><li>The above reference can be found in System.Windows.Forms.<\/li><li>Once you declared the object then you need to add below code in Page load event.<\/li><\/ol>\n\n\n\n<p>dynamicScreen = Controls.AddExtended(&#8220;AccpacOE1100.AccpacOE1100UICtrl&#8221;, &#8220;OE1100&#8221;)<\/p>\n\n\n\n<p>dynamicScreen.Visible = True<\/p>\n\n\n\n<ol class=\"wp-block-list\" type=\"1\" start=\"4\"><li>Inside the Add Extended method, user need to provide OCX class name with control name \u201cAccpacOE1100.AccpacOE1100UICtrl\u201d and RotoID \u201cOE1100\u201d.<\/li><li>Once you have done all the changes, execute the project to load the Order entry screen in Window Application in .Net framework.<\/li><\/ol>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/wp-content\/uploads\/2021\/07\/Img1.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px;\nalign: center;\" src=\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/wp-content\/uploads\/2021\/07\/Img1.png\" alt=\"Form1\"><\/a><\/center>\n\n\n\n<p>For any further assistance, feel free to contact us at \u2018accpac@greytrix.com\u2019.<\/p>\n\n\n\n<p><span style=\"font-size: Medium;\"><strong>About Us<\/strong><\/span><\/p>\n\n\n\n<p><a href=\"https:\/\/www.greytrix.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">Greytrix<\/a>&nbsp;&#8211; a globally recognized and one of the oldest Sage Development Partners is a one-stop solution provider for Sage ERP and Sage CRM organizational needs. Being acknowledged and rewarded for multi-man years of experience, we bring complete end-to-end assistance for your technical consultations, product customizations, data migration, system integrations, third-party add-on development, and implementation competence.<\/p>\n\n\n\n<p><a href=\"https:\/\/www.greytrix.com\/\">Greytrix<\/a>\u00a0offers unique <a href=\"https:\/\/www.greytrix.com\/gumu\/connectors\/\">GUMU&#x2122;<\/a> integrated solutions of\u00a0\u00a0<a href=\"https:\/\/www.greytrix.com\/salesforce-cloud-services\/sage-300-integration\/\">Sage 300 <\/a>with Sage CRM,\u00a0Salesforce(listed on Salesforce Appexchange), Dynamics 365 CRM, and\u00a0Magento eCommerce,\u00a0along with Sage 300 Migration from\u00a0<a href=\"https:\/\/www.greytrix.com\/sage-300-erp\/\">Sage 50 US, Sage 50 CA, Sage PRO, QuickBooks, Sage Business Vision and Sage Business <\/a><a href=\"https:\/\/www.greytrix.com\/resources\/sage-erp-crm-migration.pdf\">Works<\/a>. We also offer best-in-class\u00a0Sage 300 customization and development services\u00a0and integration services for applications such as\u00a0<a href=\"https:\/\/www.greytrix.com\/sage-300-erp\/\">POS | WMS | Payroll | Shipping System | Business Intelligence | eCommerce for Sage 300 ERP<\/a>\u00a0and for Sage 300c development services we offer, upgrades of older codes and screens to new web screens, latest integrations using Data and web services to Sage business partners, end users and Sage PSG worldwide. <\/p>\n\n\n\n<p>Greytrix offers 20+ add-ons for Sage 300 to enhance productivity such as\u00a0GreyMatrix,\u00a0Document Attachment,\u00a0Document Numbering,\u00a0Auto-Bank Reconciliation,\u00a0Purchase Approval System,\u00a0Three-way PO matching,\u00a0Bill of Lading,\u00a0and\u00a0VAT for the Middle East. The GUMU&#x2122; integration for Dynamics 365 CRM \u2013 Sage ERP is listed on Microsoft Appsource with an easy implementation package. <\/p>\n\n\n\n<p>The GUMU&#x2122; Cloud framework by Greytrix forms the backbone of cloud integrations that are managed in real-time for processing and execution of application programs at the click of a button. <\/p><p>For more details on Sage 300 and Sage 300c Services, please contact us at&nbsp;<a href=\"mailto:accpac@greytrix.com\">accpac@greytrix.com<\/a>, We will like to hear from you.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here\u2019s a very useful piece of code you can use to run a Sage 300 task without having to login manually or open the Sage 300 desktop. New Stuff: New web screens includes in Accounts Receivable 300C v2021.2 Suppose you have an import task in Sage 300 which has to be executed every day. So\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2021\/07\/31\/open-the-sage-300-ocx-screens-in-net-framework\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[3744,3180,3743],"class_list":["post-29925","post","type-post","status-publish","format-standard","hentry","category-sage-accpac","tag-net-framework","tag-load","tag-sage-300-ocx-screens"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Open Sage 300 OCX Screens in .NET Framework<\/title>\n<meta name=\"description\" content=\"Step-by-step guide to open Sage 300 OCX screens within the .NET Framework. Learn integration tips for smoother customization and application development.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2021\/07\/31\/open-the-sage-300-ocx-screens-in-net-framework\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Open Sage 300 OCX Screens in .NET Framework\" \/>\n<meta property=\"og:description\" content=\"Step-by-step guide to open Sage 300 OCX screens within the .NET Framework. Learn integration tips for smoother customization and application development.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2021\/07\/31\/open-the-sage-300-ocx-screens-in-net-framework\/\" \/>\n<meta property=\"og:site_name\" content=\"Sage 300 ERP \u2013 Tips, Tricks and Components\" \/>\n<meta property=\"article:published_time\" content=\"2021-07-31T13:38:57+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-23T05:50:08+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/wp-content\/uploads\/2021\/07\/Img1.png\" \/>\n<meta name=\"author\" content=\"Greytrix\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Greytrix\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2021\/07\/31\/open-the-sage-300-ocx-screens-in-net-framework\/\",\"url\":\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2021\/07\/31\/open-the-sage-300-ocx-screens-in-net-framework\/\",\"name\":\"How to Open Sage 300 OCX Screens in .NET Framework\",\"isPartOf\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2021\/07\/31\/open-the-sage-300-ocx-screens-in-net-framework\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2021\/07\/31\/open-the-sage-300-ocx-screens-in-net-framework\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/wp-content\/uploads\/2021\/07\/Img1.png\",\"datePublished\":\"2021-07-31T13:38:57+00:00\",\"dateModified\":\"2025-07-23T05:50:08+00:00\",\"author\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/#\/schema\/person\/93977cd8aa8fbd1f151d3f664e29c9f2\"},\"description\":\"Step-by-step guide to open Sage 300 OCX screens within the .NET Framework. Learn integration tips for smoother customization and application development.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2021\/07\/31\/open-the-sage-300-ocx-screens-in-net-framework\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2021\/07\/31\/open-the-sage-300-ocx-screens-in-net-framework\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2021\/07\/31\/open-the-sage-300-ocx-screens-in-net-framework\/#primaryimage\",\"url\":\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/wp-content\/uploads\/2021\/07\/Img1.png\",\"contentUrl\":\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/wp-content\/uploads\/2021\/07\/Img1.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2021\/07\/31\/open-the-sage-300-ocx-screens-in-net-framework\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Open the Sage 300 OCX screens in .Net Framework\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/#website\",\"url\":\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/\",\"name\":\"Sage 300 ERP \u2013 Tips, Tricks and Components\",\"description\":\"Explore the world of Sage 300 with our insightful blogs, expert tips, and the latest updates. We\u2019ll empower you to leverage Sage 300 to its fullest potential. As your one-stop partner, Greytrix delivers exceptional solutions and integrations for Sage 300. Our blogs extend our support to businesses, covering the latest insights and trends. Dive in and transform your Sage 300 experience with us! \",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/#\/schema\/person\/93977cd8aa8fbd1f151d3f664e29c9f2\",\"name\":\"Greytrix\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/3cdb553d6ca07df0e407d5e092f2410d163e0fd40b27734b345b04c8f0786969?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/3cdb553d6ca07df0e407d5e092f2410d163e0fd40b27734b345b04c8f0786969?s=96&d=mm&r=g\",\"caption\":\"Greytrix\"},\"url\":\"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/author\/greytrix\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Open Sage 300 OCX Screens in .NET Framework","description":"Step-by-step guide to open Sage 300 OCX screens within the .NET Framework. Learn integration tips for smoother customization and application development.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2021\/07\/31\/open-the-sage-300-ocx-screens-in-net-framework\/","og_locale":"en_US","og_type":"article","og_title":"How to Open Sage 300 OCX Screens in .NET Framework","og_description":"Step-by-step guide to open Sage 300 OCX screens within the .NET Framework. Learn integration tips for smoother customization and application development.","og_url":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2021\/07\/31\/open-the-sage-300-ocx-screens-in-net-framework\/","og_site_name":"Sage 300 ERP \u2013 Tips, Tricks and Components","article_published_time":"2021-07-31T13:38:57+00:00","article_modified_time":"2025-07-23T05:50:08+00:00","og_image":[{"url":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/wp-content\/uploads\/2021\/07\/Img1.png","type":"","width":"","height":""}],"author":"Greytrix","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Greytrix","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2021\/07\/31\/open-the-sage-300-ocx-screens-in-net-framework\/","url":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2021\/07\/31\/open-the-sage-300-ocx-screens-in-net-framework\/","name":"How to Open Sage 300 OCX Screens in .NET Framework","isPartOf":{"@id":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2021\/07\/31\/open-the-sage-300-ocx-screens-in-net-framework\/#primaryimage"},"image":{"@id":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2021\/07\/31\/open-the-sage-300-ocx-screens-in-net-framework\/#primaryimage"},"thumbnailUrl":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/wp-content\/uploads\/2021\/07\/Img1.png","datePublished":"2021-07-31T13:38:57+00:00","dateModified":"2025-07-23T05:50:08+00:00","author":{"@id":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/#\/schema\/person\/93977cd8aa8fbd1f151d3f664e29c9f2"},"description":"Step-by-step guide to open Sage 300 OCX screens within the .NET Framework. Learn integration tips for smoother customization and application development.","breadcrumb":{"@id":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2021\/07\/31\/open-the-sage-300-ocx-screens-in-net-framework\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2021\/07\/31\/open-the-sage-300-ocx-screens-in-net-framework\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2021\/07\/31\/open-the-sage-300-ocx-screens-in-net-framework\/#primaryimage","url":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/wp-content\/uploads\/2021\/07\/Img1.png","contentUrl":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/wp-content\/uploads\/2021\/07\/Img1.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/2021\/07\/31\/open-the-sage-300-ocx-screens-in-net-framework\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/"},{"@type":"ListItem","position":2,"name":"Open the Sage 300 OCX screens in .Net Framework"}]},{"@type":"WebSite","@id":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/#website","url":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/","name":"Sage 300 ERP \u2013 Tips, Tricks and Components","description":"Explore the world of Sage 300 with our insightful blogs, expert tips, and the latest updates. We\u2019ll empower you to leverage Sage 300 to its fullest potential. As your one-stop partner, Greytrix delivers exceptional solutions and integrations for Sage 300. Our blogs extend our support to businesses, covering the latest insights and trends. Dive in and transform your Sage 300 experience with us! ","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/#\/schema\/person\/93977cd8aa8fbd1f151d3f664e29c9f2","name":"Greytrix","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/3cdb553d6ca07df0e407d5e092f2410d163e0fd40b27734b345b04c8f0786969?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/3cdb553d6ca07df0e407d5e092f2410d163e0fd40b27734b345b04c8f0786969?s=96&d=mm&r=g","caption":"Greytrix"},"url":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/author\/greytrix\/"}]}},"_links":{"self":[{"href":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/wp-json\/wp\/v2\/posts\/29925","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/wp-json\/wp\/v2\/comments?post=29925"}],"version-history":[{"count":2,"href":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/wp-json\/wp\/v2\/posts\/29925\/revisions"}],"predecessor-version":[{"id":29971,"href":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/wp-json\/wp\/v2\/posts\/29925\/revisions\/29971"}],"wp:attachment":[{"href":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/wp-json\/wp\/v2\/media?parent=29925"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/wp-json\/wp\/v2\/categories?post=29925"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sageaccpacerp\/wp-json\/wp\/v2\/tags?post=29925"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}