cancel
Showing results for 
Search instead for 
Did you mean: 

Save as image

Save as image

Message contains an attachment

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!
6 REPLIES 6
MikeS81
Proven Zealot

Re: Save as image

Message contains a hyperlink

Hi Charly,

see this link please. Smiley Wink

 

Mike

Re: Save as image

Message contains a hyperlink Message contains an attachment

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!

Re: Save as image

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!
Highlighted
Captain_Kirby
NI Employee (retired)

Re: Save as image

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!

Re: Save as image

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!
F._Schubert
Active Participant

Re: Save as image

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