Getting Started - LEADTOOLS Web Services in a VS.NET Windows Application Project

This topic cover how to include the LEADTOOLS Host Web Services in Visual Studio .NET
Windows Application project.

  1. Start Visual Studio .NET and create a new Windows Application Project.

  2. Right click on the Project name WindowsApplication1 in the Solution Explorer as
    shown below:


  3. Visual Studio's Add Web Reference dialog will appear. In the Address box at the top
    of this dialog, enter this URL: http://www.leadtools.net/Services/

  4. After entering the address, the LEADTOOLS Hosted Web Services directory will be
    listed in the left pane. Click on the LEADTOOLS Image Service link list in the left pane.

  5. The left pane will now list the methods for the LEADTOOLS Image Web Service and
    the right pane will list additional information. Click the Add Web Reference button on
    the bottom right.

  6. Visual Studio will create a wrapper to the LEADTOOLS Image Web Service. Upon
    completion, expand the Web References and rename WebReference1 to LEADImageService.

  7. Repeat the steps above and add the LEAD File Service and rename it to LEADFileService.

  8. Add a DataGrid to your form and name it dgImages.

  9. Add an Open File Dialog to your form and name it dlgOpenFile.

  10. Add a Button to your form and name it btnUpload and change the text property to Upload.

  11. The the following code to the Form Declarations: