Navision AdvancedImage.Net v1.0
This is the embedded Image object you can use in your Navision forms, written as .Net DLL.
Unlikely standard Navision's Image,
- AdvancedImage supports many formats:
Bmp - bitmap image format
Emf - enhanced Windows metafile image format
Exif - Exchangeable Image File format
Gif - Graphics Interchange Format (GIF) image format
Ico - Windows icon image format
Jpg - Joint Photographic Experts Group (JPEG) image format
Png - W3C Portable Network Graphics (PNG) image format
Tif - Tag Image File Format (TIFF) image format
Wmf - Windows metafile (WMF) image format
- supports transparent GIF images
- supports dynamic stretch of image
- supports dynamic loading
- supports images of unlimited file size and resolution
http://www.mibuso.com/dlinfo.asp?FileID=504
Discuss this download here.
Comments
AdvancedImage.LoadImage('c:\sample.jpg');
CurrForm.SubForm.WIDTH := AdvancedImage.GetImageWidth*10;
CurrForm.SubForm.HEIGHT := AdvancedImage.GetImageHeight*10;
CurrForm.UPDATE;
Wait for 2.0 version
This is the embedded Image object you can use in your Navision forms, written as .Net DLL.
Unlikely standard Navision's Image,
- AdvancedImage supports many formats:
Bmp - bitmap image format
Emf - enhanced Windows metafile image format
Exif - Exchangeable Image File format
Gif - Graphics Interchange Format (GIF) image format
Ico - Windows icon image format
Jpg - Joint Photographic Experts Group (JPEG) image format
Png - W3C Portable Network Graphics (PNG) image format
Tif - Tag Image File Format (TIFF) image format
Wmf - Windows metafile (WMF) image format
- supports transparent GIF images
- supports dynamic stretch of image
- supports dynamic loading
- supports images of unlimited file size and resolution
Version 1.1:
- added GetImageWidth, GetImageHeight and SetAspectRatio methods
- added "Keep ratio" size mode
http://www.mibuso.com/dlinfo.asp?FileID=504
Discuss this download here.
Nice piece of software (and fast).
Can you tell me if it is possible to show two (or more) images on one form ?
Thanks
For example open form 80004, make a copy of subform and set its name to 'image2'.
Create a global variable AdvancedImage2 and change
'AdvancedImage' to 'AdvancedImage2' in OnActivate trigger of subform 'image2'.
Create an alternative button with code "CurrForm.img2.ACTIVATE;".
Compile form
So when you click alternative button you will get two images on one form
But you "link" the image to a subform . Is it possible to create a report with an image on it ?
Thanks !
What code would this require to store an image and to retrieve an image?
Thanks!
Tim Larson
Mission to the World
1) import an image into BLOB-field of table
2) retrieving an image
I recon most people urging for a control like this but wants (or has!) to use it in Reports as well as in Forms.
If you intend to improve the control, I have some topics for consideration:
- Named Hooking. Couldn't it be possible to use f.ex. a Shape as container. The container name could then get it's own property or be passed to the Init function.
- Alignment Properties. HorAlign (Left, Center, Right) and VerAlign (Top, Center, Bottom). It would then be possible to f.ex. center a "Keep Ratio"-mode picture.
Nice to see that innovation hasn't stopped! Great work..
What I would like to see is that, when you print a word doc as eg tiff you could use this tool to see the doc in Navision.
For some reason, the pagebreaks are not supported. I only see the first page if I do so.
Are there eny intentions to integrate this ?
Thanks !
Is it possible to browse for a file and put that in the subform instead of the filename sample.jpg
This would be a great feature
Thanks in advance
Alexader de Rooij
We have many computers.
Can I avoid registering NavAdvancedImage.dll on evry comp.
(we are do not use Citrix etc)/
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
I can't run it.
Thanks
If i got it right, Subform have Handle. So, when subform is activated, it fires triger OnActivate
In this triger AdvancedImage.Init transmit Handle. And then, on top of window (subform) draws picture
AdvancedImage.LoadImage("Path to Pictures")
For example I have 2 tabs with SubForm1 and SubForm2. OnActivate:
X - 1 or 2 ( depends on which SubForm)
IF ISCLEAR(AdvancedImageX) THEN BEGIN
IF NOT CREATE(AdvancedImageX) THEN BEGIN
MESSAGE('Cannot create AdvancedImage component');
EXIT;
END;
AdvancedImageX.Init;
AdvancedImageX.LoadImage("Path to Pictures X");
END;
So, when I swich tab control - I have 2 pictures.
Is it real to add new mode. Which fit image to subform and preserve aspect ratio of image sides. I thought it mode=0, but it dosen't works.
For example
subform w*h = 100 x 300
image w*h = 400 x 800
AdvancedImage can confert image to 100 x 200 and put it on subform.
First of all thank you for taking the time to answer this
Well i understand but the form i will be using on is the main item card in navision 3.6, so i cannot wait till the box is activated so that the subform shows the picture, plus with this case the second the control leaves the subform, the images opened will cover the whole item card, or sometimes the main menu; it's a bit unstable when you want to open a picture in that subform lets say in the onaftergetrecord trigger of the subform,
i wonder if there is a way to pass the handle as a parameter, but then again we would have to actually know the handle of each trigger, also it might be during runtime that a handle is generated, if so then doesn't it mean that there would be no way we can assign the actual subform as a parameter to the dll file,
I wonder if i can experiment with GUIDs the problem is i'm not familiar with DLL files, how to read the classes and/or modify them.
1 . You can make control so that subfurm will activate it first.
2. You can use function Activate to activate subform
Cover main menu... Hm... I am using dll of tyrex on a form with 2 tabs. On each tab diferent images. Covering was not apear...
OnAfterGetReccord: OnActivate - see code in answer above.
I'm using client 3.7B, base 3.6
SizeMode = 4 and SetAspectRatio(SetImageWidth/SetImageHeight)
helps me
thanks
I want to link AdvancedImage with a picturebox. How can I do that?
i.e I have placed one picturebox on the report. currently I import data in SalesLine.Picture and picturebox has sourceexpr = SalesLine.Picture.
My picture is .bmp.
Now can I link AdvancedImage with this picturebox.
Thanks for any help.
is there now a way to print transparent images on a report?
This creamy-gray-white background behind our logo doesnt look that good
Hi
More later ...
Anyone done it? (print in a report an image in another format, i.e. tif, not a bmp)
Thanks
PD: Good tool!
I use your control. It's great. But I'have a strange situation.
I use it in two different form. When I switch from one to other and return to first form the image appears very small in a box in wich appears 123 numers!!
Why this?What I do to solve this problem?