Thursday, January 26, 2012

ERROR:Unable to select image in Batch Pilot Properties Window using IBM Datacap Taskmaster Capture

Unable to select image in Batch Pilot Properties Window using IBM Datacap Taskmaster Capture


When we attempting to specify an image, by using the Picture property in the Property window for a Batch Pilot control, the selection reverts back to none.

This is due to The Picture property is no longer supported in Batch Pilot and code must be used to add an image to a form.

To set a picture to an image control:

  1. Run Batch Pilot.

  2. Open the project and bring up the Verify DCF or whichever form the image will be added to.

  3. Double click anywhere in an empty area of the form.

  4. In the first drop down select Pilot and in the second drop down select FormRun.

  5. After the Dim section put a line as follows, where Image1 is the name of the control.
    Image1.Picture = LoadPicture("C:\Datacap\APT\Graphics\fprintnew.bmp")

No comments:

Post a Comment