04-27-2013 09:27 AM
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)
04-27-2013 09:37 AM
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.
04-27-2013 10:48 AM
Thanks for the idea to use Express VI.
But using this, I could replace the file but not create new file.
04-27-2013 11:13 AM
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!
04-27-2013 11:25 AM
I am using Labview 2010. Here is the snapshot.
04-27-2013 11:56 AM - edited 04-27-2013 11:57 AM
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.
04-27-2013 12:04 PM
Here is the file... Please help
04-27-2013 12:32 PM
Show the code where you try to create a new file.
04-27-2013 12:52 PM
it is the only file and code i did.
Everything I wrote is in the file...(vi)
04-27-2013 12:58 PM
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.