Using LEADTOOLS Workflow Scan Activity

Show in webframe

Take the following steps to create and run a program that uses LEADTOOLS Workflow Scan Activity:

  1. Start Visual Studio .NET.
  2. Choose File->New->Project… from the menu.
  3. In the New Project dialog box, choose either "Visual C# Projects" - Workflow or "Visual Basic Projects" - Workflow in the Templates choose "Sequential Workflow Console Application".
  4. Type the project name as "Using Leadtools Workflow Scan Activity" in the Project Name field, and then choose OK. If desired, type a new location for your project or select a directory using the Browse button, and then choose OK .
  5. In the "Solution Explorer" window, right-click on the "References" folder (For a VB project, right-click on the project file in solution explorer), and select "Add Reference…" from the context menu. In the "Add Reference" dialog box, select the ".NET" tab and browse to the "<LEADTOOLS_INSTALLDIR>\Bin\DotNet\Win32 " folder and select the following DLLs:
    • Leadtools.Workflow.Scan.dll
    • Leadtools.Workflow.Raster.dll
    Click the Select button and then press the OK button to add the above DLL to the application.
  6. To add the LEADTOOLS activities to your toolbox, right-click the toolbox and select "Choose Items". In the "Choose Toolbox Items" dialog, go the tab "Activities" , and browse for and select the activities from the following DLLs (Namespace Leadtools.Workflow):
    • Leadtools.Workflow.Scan.dll
    • Leadtools.Workflow.Raster.dll
  7. Double-click Workflow1 to open it in design mode, then select the following activities from the toolbox and place them on the workflow in the order specified:ScanActivity, SaveImageActivity.
  8. Set the TargetFile and Format properties of the SaveImageActivity to "c:\result.jpg" and "Jpeg" respectively.
  9. Bind the Image property of the SaveImageActivity to the WorkflowImage property of the ScanActivity.
  10. Set the output folder of the project .exe to where LEADTOOLS .Net DLLs are installed. For example: <LEADTOOLS_INSTALLDIR>\Bin\Dotnet\Win32
  11. Build, and Run the program to test it.

 

 


Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.