Knowledge Base
Knowledgebase

Knowledgebase Home > PowerBuilder  |  Home  | Contact Knowledgebase Home  |  Home  | Contact
Search the Knowledgebase Browse by Category
PowerBuilder
There were 17 questions found in this category:
  1. Can VisImage for PowerBuilder handle multiple page scanning of documents, and do batch scanning jobs?
    The VisImage for PowerBuilder toolkit can support multi-page scanning provided that the TWAIN drivers for the scanner allow for programmatically setting the necessary TWAIN capabilities. The toolkit offers no facilities for batch document scanning.  There is an assortment of non-toolk...

  2. Can VisImage for PowerBuilder load and then page through a multi-page file or must each page be loaded separately when it is to be viewed?
    There is a page variable that can be used in the load function as well as functions  fu_prior_page and fu_next_page. Please review the help file documentation for more information.

  3. Does the VisImage for PowerBuilder currently support displaying animated GIF files?
    Our product line does not support animated GIF files, and there are no plans to implement this type of support in the future.

  4. Does VisImage for PowerBuilder support thumbnails?
    Our product is not an off the shelf application that will automatically generate thumbnails if that's what you are looking for. You would need to resize/resample the images to the size required to represent a thumbnail. You can also use the display engine to display the image at a thumbnail...

  5. Does VisImage for PowerBuilder work on images inside of datawindows that need to be resized without changing the aspect ratio?
    PowerBuilder does not support binding of any UserControl from a Data Window for blob data types. What PowerBuilder does offer is the embedded SQL PowerScript functions SELECTBLOB and UPDATEBLOB. You can use SELECTBLOB to create a PowerScript blob datatype and have VisImage for PowerBuilder read the ...

  6. Each time a JPEG is retrieved, displayed, updated, saved to file, loaded into blob and saved back to the database the quality of the image deteriorates more. How can I preserve the quality?
    The fu_set_comp_quality function will set the compression/quality factor used in export of images that support a lossy compression. Currently JPEG, BXS and PNG are the only formats that use this value. VisImage for PowerBuilder sets the compression/quality factor to a default value of 75. ...

  7. I am getting the following error: "Error opening DLL library pwrimg32.dll for external function at line 2 in function fu_scan_to_file of object powerimage32". What's the problem?
    This means one or more of the subordinate DLLs is not properly located. The files: visimg32.dll, visant32.dll, and pwrimg32.dll all need to be in either the application folder or the WinSys folder. For NT, the WinSys folder is winnt\system32. For 95/98/Me, the WinSys folder is windows\system....

  8. I am receiving the following error when attempting to display a TIFF image in VisImage PowerBuilder: return code -6 (unsupported image format). What's the problem?
    The sample image that you provided proved to be an old-style JPEG compressed TIFF. We do not provide support for JPEG Compressed TIFF files.

  9. Is it possible to access a specific image in a TIFF file so that it may be used elsewhere?
    When loading an image, specifiy a subindex value (zero based) to indicate which image page you want to load. See the help file for more information.

  10. Is it possible to append a new scanned page to an existing multi-page scan file (TIFF) using VisImage for PowerBuider?
    Yes, but make sure that you call fu_set_multipage_export with a value of 1, so that the image will be appended at the end of the file. Then call fu_save_image passing in the TIFF filename. ...

  11. Is it possible to specify that multiple page documents be scanned in as multiple image documents (ie, TIFF) format?
    Yes. Use the function fu_set_multipage to specify if TIFF files should be written as single image files or multipage files. See the help file for more information.

  12. Is there any way to get VisImage for PowerBuilder to provide a blob without first saving it to a file?
    The only way to populate a BLOB data type is from a file. This is a PowerBuilder PowerScript limitation. PowerScript provides no means of reading/writing memory streams, only file streams. As a result, we can only build a BLOB using direct PowerScript functions. For a better explanation, please...

  13. Using the function fu_alter_contrast on a scanned document always returns -5 regardless of what we set the degree to. Can you explain why this happens and is there a workaround?
    The contrast adjust only works on images of 8bpp or better. That is, it does not work with bitonal or 1bpp images. You would need to promote to 8bpp, convert to gray, then perform your image processing tasks after which you convert back to bitonal using a threshold dither to 1bpp. If you are looki...

  14. We need to remove blank pages that are scanned when the scanner is in duplex mode. Also, all the files we scan are multi-page. How do I do this using the functions in VisImage for PowerBuilder?
    We have a morphological API in our C/C++ toolkit that is not published in our Power Builder toolkit. Since VisImage for Power Builder uses the DLL, you can create an External API call to the function for detection of a blank page. The function to use is:   Prototype
    int vimg_countcolor(VIMG_HN...


  15. We need to upgrade to a more current version of PowerBuilder. Will this be a problem for VisImage for PowerBuilder?
    You can use the existing version of VisImage for PowerBuilder in a new version of PowerBuilder. This is because you have the source code .pbl that was delivered with the toolkit. All that is required is to use the PowerBuilder Migrate utility to migrate the .pbl to your version of Pow...

  16. When saving an image to a temporary JPEG file, the error: -5 (Image BitsPerPixel unsupported in function) is returned. What's the problem?
    You are receiving this error because you are trying to store a 1bpp TIFF image as JPEG, and JPEG standards only support 8 and 24 bpp.  To get around this error, and still store in the database as JPEG, you could promote the TIFF image to 8 or 24bpp using fu_promote_to_8bit or fu_promote_to...

  17. When scanning directly into the VisImage for PowerBuilder control, how do I determine the file type for when I export it to a file to get a blob to save into the database?
    When we acquire an image from a Twain device, we receive it as raw data. The Twain driver tells us the properties of the raw data, and we build an image internally. The function you want to use is fu_image_info since there is no file structure to the raw data we got from the...


©1995-2007 Visionary Solutions. All rights reserved.