LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Open/Create/Replace Dialog Help

Hi all,

 

 

I want to create or replace an excel file (it may be 2003 format or 2007 format).

 

When the dialog opens, in the "Save as type" field, there is option "All files".

 

Due to this, I have to write the extension .xls or .xlsx.

 

Kindly help me if i can set the values in that field... (.xls or .xlsx)

 

 

Srikanth Chilivery,
0 Kudos
Message 1 of 18
(3,483 Views)

Your picture doesn't do a very good job as to what you are trying to do.  I can't see what file dialog function you are trying to use.

 

If you use the File Dialog Express VI, it gives an input on how to set the patterns.

0 Kudos
Message 2 of 18
(3,477 Views)

Thanks for the idea to use Express VI.

 

But using this, I could replace the file but not create new file.

Srikanth Chilivery,
0 Kudos
Message 3 of 18
(3,466 Views)

windows wrote:

But using this, I could replace the file but not create new file.


 

What is your LabVIEW version?

 

Using the file dialog express VI, you can specify exactly what operations should be allowed. You just need to configure it accordingly Try it!

 

 

0 Kudos
Message 4 of 18
(3,457 Views)

I am using Labview 2010. Here is the snapshot.help.png

Srikanth Chilivery,
0 Kudos
Message 5 of 18
(3,453 Views)

Then show the entire code, including the parts where you open the file. Please attach the VI!

 

So far, you only select the VI, the important issue is how you use the selected path later to open the file.

0 Kudos
Message 6 of 18
(3,445 Views)

Here is the file... Please help

Srikanth Chilivery,
0 Kudos
Message 7 of 18
(3,439 Views)

Show the code where you try to create a new file.

0 Kudos
Message 8 of 18
(3,434 Views)

it is the only file and code i did.

 

Everything I wrote is in the file...(vi)

Srikanth Chilivery,
0 Kudos
Message 9 of 18
(3,428 Views)

It can't be.  You don't have any code in there that tries to actually open a file, whether it already exists or not.  The only code related to files is the Express Dialog, and the subVI that tells you the extension of the filename picked from the file dialog.

0 Kudos
Message 10 of 18
(3,423 Views)