General downloads

Draw every Graphic directly from NAV

Author
René Thöne  
Category
General downloads
Date
29/01/2009
Size
47,45 KB
Downloads
1397
MD5 digest
52391A42E61D61AC0D9BC5C6CBA9F634
Rating
215021
Popularity
Not yet downloaded in the last two weeks
Draw Shapes, Convert Pictureformats, Design Pictures: You can do everything you would do with an Paintprogram directly from the Commandline with Imagemagick (http://www.imagemagick.org).

With this Codeunit you can draw all primitives directly in Navision (Lines, Triangles, Quaders, Text, Pie-charts) directly in Navision.

You need the executables (http://www.imagemagick.org/download/binaries/ImageMagick-6.4.8-9-Q8-windows-static.exe) to use this Functions.
You can do much more with Imagemagick. Changing Color and Saturation, Curling Pictures, Mix, resize, Rotate, change Colorsheme and and and.

This Nav-functions show the basics to work with Imagemagick, the screenshot attached to the ZIP is drawn with this functions, the example Code is inside for demonstration purposes. In combination with my Math-Codeunit you can also draw Piecharts and much more with Sin/Cos/Arc calculation. It is only one single Codeunit w/o any Sidefect. The CU is written in 4.03, but should run on Navision 1.3 till 5/2009.

Things to do: You could speed up the Functions by
a) using Script-Batchfiles instead of drawing every single Function
b) Using the Automation server. If you install the DLL-ImageMagick, you get an Automation server which ist working in Navision. This would also reduce the working time. This will not work for the older Navision-versions.

Feel free to optimize, speed up, expand the functions, as long as you let my name in the Documentation part and publish your extensions to the comunity.

The Function generates a *.bmp with lowest possible size which can be directly imported into Navision-BLOB as shown in the Screenshot.
Download this file

Screenshots