LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Save as image

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 

Message Edited by CharlyStardust on 09-09-2008 04:26 PM
It's always sunny in California! Certified LabVIEW Associate Developer!
Download All
0 Kudos
Message 1 of 7
(3,204 Views)

Hi Charly,

see this link please. Smiley Wink

 

Mike

Message 2 of 7
(3,184 Views)

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

It's always sunny in California! Certified LabVIEW Associate Developer!
Download All
Message 3 of 7
(3,166 Views)

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

It's always sunny in California! Certified LabVIEW Associate Developer!
0 Kudos
Message 4 of 7
(3,144 Views)

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

Asa Kirby
CompactRIO Product Marketing Manager
________________
Sail Fast!
Message 5 of 7
(3,122 Views)

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 :

  • Microsoft Office 2000 Developer Edition
  • Microsoft Visual Basic 6.0
  • Microsoft Visual Studio

 

I installed Microsoft Visual Basic 6.0 professional edition and now it works fine. It is not convenient for distribution though.

Charly

It's always sunny in California! Certified LabVIEW Associate Developer!
0 Kudos
Message 6 of 7
(3,121 Views)

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 

Message 7 of 7
(3,101 Views)