Compartir a través de


Running the sample application

To run this sample application, perform the following steps:

  1. Extract the .zip archive containing the samples.

    In the folder where Visual Studio Tools was installed, locate the Samples.zip archive. This archive contains both the C# and Visual Basic versions of the samples. Extract this archive to a location that you have permissions to access.

  2. Open the Estimate Freight sample solution.

    Using Visual Studio, open the solution file EstimateFreight.sln for the C# or Visual Basic version of the sample.

  3. Verify the references for the sample solution.

    Use Visual Studio to view the references for the project. The Estimate Freight sample should include references to the following assemblies:

    • Application.Dynamics

    • Microsoft.Dexterity.Bridge

    • Microsoft.Dexterity.Shell

    If any of these references for the project are not valid, re-add them to the project.

  4. Set the Solution Configuration.

    Set the Solution Configuration to Release to build the release version of the application.

  5. Build the application.

    From the Build menu, choose Build Solution. If there are no build errors, the assembly for the Estimate Freight application will be built.

  6. Install the Estimate Freight assembly.

    Copy the EstimateFreight.dll from the Release folder for the project to the AddIns folder in the Microsoft Dynamics GP installation.

  7. Install the Estimate Freight help file.

    Copy the EstimateFreight.chm help file from the EstimateFreight folder into the Dynamics GP installation folder. The help file should be placed in the same folder as the GreatPlains.chm help file.

  8. Start Microsoft Dynamics GP.

    The Estimate Freight sample application will be loaded.

  9. Open the Sales Transaction Entry window.

    In Microsoft Dynamics GP, open the Sales Transaction Entry window.

  10. Display a sales document.

    You can display an existing sales document or create a new sales document.

  11. Add items to the sales document.

    Be sure the sales document has inventory items for which the estimated shipping weight has been specified.

  12. Display the Estimate Freight window.

    In the Additional menu, choose Estimate Freight. The Estimate Freight window will appear.

  13. Choose a shipping method and calculate the freight.

    Choose either Air or Ground as the shipping method, and then click Calculate to calculate the estimated freight.

  14. Return the Freight amount to the sales document.

    Click Save to return the estimated freight amount to the Freight field for the sales document.