NAVPictureViewer 2.0
With this tool you can view any kind of supported picture formats like JPG, TIF, GIF, BMP, etc. from BLOB fields stored in the NAV database. The data are passed from the BLOB field to a picturebox control via NAV OutStream interface (no temporary files involved) and the picture is completelly embedded in a NAV subform control. You can rightclick the picture, copy it to the clipboard and paste it into another application.
Included is a demo object form (item card), which allows you to view, import, export and delete pictures (viewing is possible up to a picture size of 80 kB).
The tool and the 3 demo object Forms 50075 to 50077 should be useable for NAV version 3.01 or higher (tested with NAV 5.0 SP1 and NAV 2009 under XP and Vista).
If you would like a full version of this tool for commercial purposes or have any questions, please contact
ghuebner@dms-systemhaus.dehttp://www.mibuso.com/dlinfo.asp?FileID=1098
Discuss this download here.
Comments
In order to uninstall the control, you have to do the steps in the readme.txt file in reverse order. Especially the command for uninstalling the dll is:
regasm /unregister /codebase /tlb NAVPictureViewer.dll
After having the control uninstall, you can delete the file NAVPictureViewer.dll from your hard disk.
Known issues:
1.) If the control in the subform shows no image you can rightclick the (empty) subform and select "Copy", which causes an unhandled exception. This will be corrected in the next release ("Copy" should not be enabled, when there is no image to copy).
2.) If you import a file containing an invalid picture format, an exception is thrown, but it is not possible to delete the imported BLOB from the database with the demo objects. This will be corrected in the next release. Instead of an exception, a message is displayed.
3.) In the import- and export-dialogs only some of the supported graphic formats are proposed. The following formats are supported:
Bmp,Emf,Exif,Gif,Icon,Jpeg,Png,Tiff and Wmf (will be corrected)
Extensions planned for the next release:
1.) A comfortable installation routine should be provided making it unnecessary to install/uninstall the DLL manually.
2.) It should be possible to drag and drop an image file to the NAV subform, thereby the image is automatically saved in the database (replacing of course an already existing image after prompting). The context menu should also be extended by a "Paste" entry to import files directly from the clipboard.
3.) It should be possible to delete an image from the database via right-clicking it and select "Delete".
4.) It should be possible to print the stored images on arbitrary reports in a picture box of arbitrary size. The zoom factor should be determined automatically.
5.) It should be possible to convert a picture to another graphic format, for example convert existing bmp pictures to jpg.
6.) When exporting a picture, the same graphic format should be proposed in which the picture was originally stored in the BLOB field of the database. If annother graphic format is chosen, an automatic conversion should take place.
PictureBox to display and print images of different formats embedded in NAV forms.
New Version 2.1:
- multiple images embeddable in Item card or other forms
- printing from NAV reports with auto scaling
- 9 supported image formats like Jpeg, Tiff, Gif, Wmf, ...
- easy to install and deinstall
- sample application objects
- documentation in pdf format
- drag and drop, copy and paste
- information about image (format, size, resolution)
http://www.mibuso.com/dlinfo.asp?FileID=1098
Discuss this download here.
Known issues:
1.) On NAV versions older than 5.0 the client may crash in a non reproducable way while printing or running the demo report. Often a C++ Runtime error is shown: R6025 Pure virtual function call. - This seems to be due to an incorrect handling of COM Automation objects within older NAV versions. There is a workaround which creates the NAVPictureViewer for every picture to print and clears it again afterwards. To implement this workaround you first have to create a new function ClearViewer() in the subform 50077: Secondly, remove the code in the OnPreDataItem trigger of report 50075 "NAVPictureViewer Item List" and replace the code in the OnAfterGetRecord trigger with the following code: (the variable isRunning is no longer needed)
So the Automation variable is created and cleared for every picture. Fortunately this does not lead to any noticeable slowing down of the report printing speed but should avoid crashing the client.
2.) In some cases (small picture size, some pictures in Wmf format, etc.) an Invalid format text is shown, though the picture is a valid image. If you encounter this problem and you have got a commercial version, please contact me to receive a hotfix.
PictureBox to display and print images of different formats embedded in NAV forms.
New Version 2.2:
- multiple scaleable images embeddable in Item card or other forms
- fast display of images
- printing from NAV reports with auto scaling
- 9 supported image formats like Jpeg, Tiff, Gif, Wmf, ...
- easy to install and deinstall
- sample application objects
- documentation in pdf format
- drag and drop, copy and paste
- information about image (format, size, resolution)
- no file size limitation in demo version
New Version 2.1:
- multiple images embeddable in Item card or other forms
- printing from NAV reports with auto scaling
- 9 supported image formats like Jpeg, Tiff, Gif, Wmf, ...
- easy to install and deinstall
- sample application objects
- documentation in pdf format
- drag and drop, copy and paste
- information about image (format, size, resolution)
http://www.mibuso.com/dlinfo.asp?FileID=1098
Discuss this download here.
you mentioned about 3 demo object Forms 50075 to 50077. did not foud it in the download section.. should we pay to use this?
PictureBox to display and print images of different formats embedded in NAV forms.
New Version 2.3 (11/09/2014):
- Display pictures from file system (not embedded as Blobs in NAV)
- Bugfixes
New Version 2.2 (9/09/2010):
- multiple scaleable images embeddable in Item card or other forms
- fast display of images
- printing from NAV reports with auto scaling
- 9 supported image formats like Jpeg, Tiff, Gif, Wmf, ...
- easy to install and deinstall
- sample application objects
- documentation in pdf format
- drag and drop, copy and paste
- information about image (format, size, resolution)
- no file size limitation in demo version
New Version 2.1:
- multiple images embeddable in Item card or other forms
- printing from NAV reports with auto scaling
- 9 supported image formats like Jpeg, Tiff, Gif, Wmf, ...
- easy to install and deinstall
- sample application objects
- documentation in pdf format
- drag and drop, copy and paste
- information about image (format, size, resolution)
http://www.mibuso.com/dlinfo.asp?FileID=1098
Discuss this download here.