09-09-2008 06:25 PM - edited 09-09-2008 06:26 PM
Hi,
I would like to modify the File Dialog so the user can select one format between 3 possible formats to save an image. For example the user has the choice to save its image as bmp OR jpg OR png.
So far I could define the pattern file with FileDialog.vi but not properly.
Any help?
Charly
09-09-2008 11:49 PM
09-10-2008 12:42 PM
Hi Mike,
Thank you for the link. I have a better insight into FileDialog.vi now. According to Sam from LAVA forum. "This file dialog uses a windows com object to show your native file dialog. You can use it to show printer, color and other dialogs too, but the functionality has only been implemented for File selection."
I have also found a similar post here.
I have Windows XP SP2 that comes by default with the necessary ActiveX control (comdlg32.ocx). The point is I don't figure out how to 'load/link' the ActiveX control: I can see an error message saying "Control couldn't be loaded" and if I try to load it by myself (right-click->Insert ActiveX object->Microsoft Common Dialog Control, version 6.0 SP6) I get an error message. (see attachments)
I noticed that the comdlg32.ocx from the LAVA forum is smaller in size than the one already installed on my computer.
What can I do to make it working?
Charly
09-11-2008 12:50 PM
Hi,
I am still looking for a solution. )-:
Does anyone know how to get a 'licence' for this ActiveX? The registration is not enough.
Charly
09-11-2008 04:23 PM
Hi Charly,
You might try the solution listed in this KnowlegeBase. It looks like it might be a VB problem.
"Class is not licensed for use" message when using certain Microsoft ActiveX controls
09-11-2008 04:24 PM
Hi,
According to this example program or this other example program
You must have one of the following programs installed to use the comdlg32.ocx :
I installed Microsoft Visual Basic 6.0 professional edition and now it works fine. It is not convenient for distribution though.
Charly
09-12-2008 06:54 AM
There is also the option of a Win API call (dll). I found an implementation when I wanted to open multiple files at once with a file dialog. You propably find this or others when searching NI and LAVA.
Felix