web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Open GP window from external VB Application

(0) ShareShare
ReportReport
Posted on by

I have a vb.net application where I am doing some processing. I want one button to go to GP ( if running) and open Purchase order entry window.

Later I want to populate fields on this window and press buttons but I cannot even get to GP and open the window. How do i do this?

Specific instructions with some code would be great to accomplish this, what references to put in, what else to do would really help me a lot.

*This post is locked for comments

I have the same question (0)
  • GPDev Profile Picture
    1,755 on at

    Hi Josh,

    You can use some command line code and a macro to accomplish this. Both macros and command line code can be executed in vb.net.

    First, you should download the Integration Manager users guide. In chapter 17 it discusses how to schedule an integration which involves launching GP from the command line and using a macro to automatically login. In this users guide you can get the code to launch GP from the command line and the code for the login macro. Check out this post for more details:

    http://dynamicsgpblogster.wordpress.com/2009/01/08/how-to-schedule-dynamics-gp-to-automatically-log-in-and-run-an-integration-manager-integration/

    You can then execute the command line code in vb.net to launch GP. Then execute the macro in your .net code to login and open the Purchasing Order Entry window. Check out this article on how to execute macros in vb.net:

    http://support.microsoft.com/kb/306682

    Hope this helps.

  • Community Member Profile Picture
    on at

    Greg, What you are suggesting will not work for me. I am not trying to import data in. Iam trying to open Purchase order intry window ( GP is already running and logged in by the user). I want to open this window and open a particular PO that is already entered into the system.

  • sandipdjadhav Profile Picture
    18,306 on at

    Hamza,

    I have same question one week before I posted, here is link Mariano replied on my post it helped me but I started getting another error - "Could not load file or assembly 'Application.Dynamics, Version=11.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified"

    https://community.dynamics.com/forums/p/39264/70162.aspx#70162

    here is another link :

    http://blogs.msdn.com/b/developingfordynamicsgp/archive/2010/04/16/microsoft-visual-studio-tools-window-does-not-open.aspx

     My Code :

    ************************

    In reference included : Application.Dynamics

    Application.MenusForVisualStudioTools

    Microsoft.Dexterity.Bridge

    Microsoft.Dynamics.Common

    ********************************************

    using Microsoft.Dexterity.Bridge;

    using Microsoft.Dexterity.Applications;

    using Microsoft.Dexterity.Applications.DynamicsDictionary;

     private void btnOpenCustMstr_Click(object sender, EventArgs e)

           {

               Dynamics.Forms.RmCustomerMaintenance.Open();

           }

    **************************************************

    Error :

    Could not load file or assembly 'Application.Dynamics, Version=11.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified

    Please help me to resolve issue.

     ----------------------------------------

    please let me know if you found any answer.

    Thanks

    Sandip

  • sandipdjadhav Profile Picture
    18,306 on at

    Hamza,

    Any news ? Did you got any answer ? Are you able to open Dynamics GP window ?

    Thanks

    Sandip

  • Richard Whaley Profile Picture
    25,195 on at

    The instructions referred to in the IM text discuss running GP from a command line.  The use of IM is optional.  Additional instructions on creating and running macros can be found in Confessions of a Dynamics GP Consultant available from our web site.

  • sandipdjadhav Profile Picture
    18,306 on at

    Sir,

    Thanks much for your quick reply, I am trying to create windows form application ,on button click event I want to open Cusotmer Maintenace window , same like in other button click event -Vendor Maintenence window something like that using C#.

    Any sample code will help lot.

    Thanks

    Sandip

  • Community Member Profile Picture
    on at

    Sandip, Look at this link. It might solve your problem.

    http://mohdaoud.blogspot.com/2009/10/practical-example-on-dynamics-continuum.html

    Hamza 

     

  • sandipdjadhav Profile Picture
    18,306 on at

    Thanks much Hamza.

    Sandip

  • MG-16101311-0 Profile Picture
    26,225 on at

    Since your application is written in VB.NET, you will need to use the Dynamics Continuum Integration Library to accomplish your objectives. You can download the Continuum manual from CustomerSource or PartnerSource.

  • sandipdjadhav Profile Picture
    18,306 on at

    Mariano,

    Thanks so much for your reply .

     

    Thanks

    Sandip

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
Community Member Profile Picture

Community Member 2

#2
mtabor Profile Picture

mtabor 1

#2
Victoria Yudin Profile Picture

Victoria Yudin 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans