Open .csv file in excel via Labwindows

Hello
After writing all my data in a .csv and closing it (using fclose), I would like to open this .csv file using Excel via a Labwindows command so that the user can see all the data. Is that possible? If yes, which function should I use?
Thanks

The simplest way of all is to issue the command OpenDocumentInDefaultViewer (): it should automatically open Excel with the document in it. It is equivalent of double-clicking the file in windows explorer.
If it does not opens the file, you must verify that in windows CSV file extension is correctly associated with Excel application.
Proud to use LW/CVI from 3.1 on.
My contributions to the Developer Zone Community
If I have helped you, why not giving me a kudos?

Similar Messages

  • How to automatically open csv files in Excel on imac

    I am migrating back from Google Chrome to firefox and would like to have the browser automatically open csv files to Excel on my mac desktop. The step to have them saved in the download folder and then go in an open it in Excel adds an unnecessary action. In the earlier versions of Firefox on my windows machine this worked as desired. Any help will be appreciated.

    The Yahoo Finance server sends the file with the ''Content-Type: application/octet-stream'' header. This is a generic MIME type that doesn't describe the type of file. Therefore you will always see a download prompt, regardless of your download preferences.
    * [https://developer.mozilla.org/docs/Web/Security/Securing_your_site/Configuring_server_MIME_types What are MIME types? | MDN]
    To get around this issue, install the Force Content-Type add-on.
    * https://addons.mozilla.org/firefox/addon/force-content-type/
    In the Add-ons Manager, Extensions category, click the Options button next to Force Content-Type. Create two rules as follows:
    * URL: '''(.csv)$''' Old Content-Type: '''text/plain''' New Content-Type: '''text/csv'''
    * URL: '''(.csv)$''' Old Content-Type: '''application/octet-stream''' New Content-Type: '''text/csv'''
    You should then be able to select what you want to do with CSV files (i.e. open them directly rather than save), and check the "Do this automatically…" option.
    You're welcome.

  • Why can't I open .csv files in Excel 2013?

    We purchased (20) new machines all with Office 2013 (OEM) version.  We can no longer open .csv files with Excel 2013.  When we go to a machine with Office 2010 it opens perfectly.  The issue is with some change to Excel.  I see a lot
    of complaints on the internet about this issue.  Since we have OEM versions of Office, I am not entitled to a downgrade to 2010.  I need to know what Microsoft is doing to fix this issue, or need them to grant us rights to downgrade. 

    Hi,
    In regarding the issue, I had tested in Excel 2013 of my PC. It seems worked fine. Thus, I suggest you try to do the following methods to test.
    1. Import the CSV file into Excel 2013. Click Data tab>From Text
    http://superuser.com/questions/407082/easiest-way-to-open-csv-with-commas-in-excel
    2. Did you get en error message "SYLK: File format is not valid" when you open CSV file?
    If it was, please try to follow the link to fix the issue:
    http://support.microsoft.com/kb/323626
    3. Please try copy one of the CSV file to notepad and save it as a new name to test.
    4. You'd better upgrade the lastest patches.
    Regards,
    George Zhao
    TechNet Community Support

  • Open CSV files in Excel through labview

       Dear,
    Am not famillar with *.csv files but I would like to know if it's possible to : open a CSV files in excel through labview.
    I can't used ActiveX for my application. This application is on Labview 8.2
    Regards
      Massif

    Hi Massif,
    a .csv file is a spreadsheet file, so use the "open spreadsheet file" VI.
    Cheers
    Edit:
    Dang, I'm always 30seconds behind you smercurrio!
    Message Edited by lmtis on 04-22-2008 10:27 AM
    Jim
    LV 2013
    Attachments:
    csv.png ‏2 KB

  • Open .csv file in Excel

    If I double click a .csv file in Windows Explorer, then Excel runs and the file is opened.
    Is it possible to get LabVIEW to do this?
    The problem is, I don't know which version of Excel will be installed, and I also need to accomodate future versions.
    Everything I've found with a search seems use to system_exec.vi with a constant pointing to the location (in c:\program files\microsoft office....etc) of a particular version of Excel
    So what I want is to have a button which fires an event which takes the specified .csv file and runs whatever version of Excel is installed to open the file.
    Solved!
    Go to Solution.

    Oooooooh almost.
    It's on the right track, but, as is explained here, there needs to be a further pair of quotes in the command line.
    So it actually needs something like cmd.exe /c start "" "c:\path\file.csv"
    If the extra quotes aren't there then it opens a command prompt window with the path and filename as the window title (WHY???)
    But using START is the correct solution, so I'm going to credit you with that.
    Thanks.

  • Web.Show_document to open .csv file in Excel How??

    We have a utility built in our menu (mmb)
    It reads the screen output and creates a .CSV file on the server using text_io and then using Web.show_document displays the file on the client.
    The file opens in MS-EXCEL. It gives a standard Excel prompt for Open , Save or run.
    Now our application has moved to FMW 11gAS.
    The file creation is happening but the file is opening in HTML format.
    The excel prompt is not coming.
    Where is setting to be done to open the .CSV files in EXCEL

    In addition to what I already mentioned, your issue may be partially caused by these two bugs: 10186820 & 10191154
    Both have been fixed in 11.1.1.6, which was released last week. Information about the 11.1.1.6 patch set can be found in MyOracleSupport note 1364511.1
    The fix should also already be in 11.1.2.0

  • Not able to open .CSV file in excel sheet

    Hi All,
    I doing proxy to file content conversion scenario .Scenario is runing fine .I have huge ammount of data let say 2 lacs records
    when I am trying to open my target file it is file not loaded completely .that is why is my tester is saying that he is not getting all the records.
    but I am opening the file with notepad I am able to see the last record in file which is same in SAP table.
    now what I have to ask tester to do?
    plz sugget
    Regards
    Edited by: gangadhar kh on Mar 25, 2010 7:50 AM

    Dear Gangadhar,
    Refer this thread and it may give idea on your issue.
        how much rows can be visible in excel sheet
    Regards,
    JP.

  • How do I set Excel as default program to open CSV files?

    I am using a program that creates CSV files which I wish to open with Excel. Currently, the CSV files just open as a raw data sheet on my computer. Support folks said I didn't have Excel as my default program to open CSV files; How do I do this?
    Thanks,
    Kevin

    You can only set an automatic download action for CSV to open with Excel is a website sends such a file with a supported MIME type. In other cases you need to select the application to use. You can set the default application via Windows Explorer to make Firefox offer that as first choice (right click a CSV file > Open With).
    *MIME Edit: http://space.geocities.yahoo.co.jp/gl/alice0775/view/20080912/1221150790

  • Safari will not open .csv files automaticlly into excel

    With the latest update to Safari. I get email links from my corporate that opens a .csv file into excel automatically . It opens a page in Safari with garbage on the page now.If I use Foxfire it opens in excel automatically as always.
    When I call Apple they had no clue as to what I am talking about. Zero help!
    Does anyone else have this problem in Safari and know how to associate Safari with Numbers or Excel??
    Thanks

    Hi,
    Try this thread.
    http://discussions.apple.com/thread.jspa?messageID=10226756
    Carolyn

  • Issues while opening a UTF16 encoded .csv file in excel using c#

    When I tried to open a UTF8 encoded
    .csv file in excel through my c# code, doing something like this:
    m_excel.Workbooks.OpenText(newPath, Comma: true);
    That works fine. Can anyone tell me what to do if I had to open a UTF16 encoded
    .CSV file similarly. All options i tried either fails or print incorrect Unicode characters.
    So somehow we have to specify the encoding format (of the file to be opened i.e .CSV)  while opening using excel functions, which i am unable to figure out.
    Please help me. I am badly stuck here.
    Thanks in advance.

    Hi Jb9952,
    There is an Origin parameter in
    Workbooks.OpenText method, you need to specify this parameter. You could try to use xlWindows (Windows ANSI).
    To get the specify file origin value, you could get the detail code through Record Macro feature in excel.
    Regards
    Starain
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Separator problem after opening a exported CSV file in Excel

    Dear experts,
    After exporting a report to .CSV file from BEX browser, I opened this file with Excel. I found that "," is considered as separator, but not ";" which is by default the separator in CSV file exported.
    For example, when i open the CSV in Notepad, i have:
    "15.07.2008";"E001";"No value"
    "15.07.2008";"E001";"No value, date, time"
    When it is opened in Excel, I have
    "15.07.2008";"E001";"No value"(Column A)
    "15.07.2008";"E001";"No value(Column A) date(Column B)    time"(Column C)
    Is that a problem in Excel configuration? How to solve it (for example, set ; as separator)?
    Thanks in advance!
    Edited by: Xiaoxuan WU on Jan 23, 2008 4:00 PM

    Hi,
    Please try opening your .csv file in excel. I am assuming that all texts are in one column. Select this column, go to Data>Text to Columns. Set the checkbox to Delimited. Click on next. Set the delimeter to ; and the text qualifier to ". Click on next. Click on finish. Then save in another filename. Try opening this new .csv file in notepad and see if it has the format you needed.
    Hope this helps,
    Juice

  • Launching Excel via LabWindows

    Hello,
    I want to launch and control Excel via labwindows, I found this example : https://decibel.ni.com/content/docs/DOC-21745#comm​ent-29359 which is perfect for me but when I am trying compiling it, I have thoses errors  :
         Undefined symbol '_ExcelRpt_WorksheetNew@12' referenced in "excelreportdemo.c".
         Undefined symbol '_ExcelRpt_ApplicationNew@8' referenced in "excelreportdemo.c".
         Undefined symbol '_ExcelRpt_WorkbookNew@8' referenced in "excelreportdemo.c".
    Did someone have a solution about this problem?
    Thank You.
    Théo Martin

    Hello Theo,
    Looking in Library Tree, you don't have any instrument loaded. Since you have excelreport.fp in your project, the instrument "Excel Report" (which also loads "Microsoft Excel 9.0 Object Library") should be loaded when opening the project or adding the fp to the project.
    Could you check if you have excelreport.fp on your computer (CVI installs it in C:\Program Files\National Instruments\<CVI DIR>\toolslib\activex\excel). If it is, it might be the case that the path in your project is not correct. Right-click on excelreport.fp in workspace three, select Replace File in Project.. and select the right file. Don't you get an error when you open the project?
    You can also have a look on the example project C:\Users\Public\Documents\National Instruments\<CVI DIR>\samples\activex\excel\excelreportdemo.prj"

  • Open CSV files

    I am unable to have  Safari open CSV files in my Excel 2011  (Mac). Safari will download the CSV file and when I try to open it with Excel 2011 I get the message that Excel 2011 can not open the file because the developer is unknown.
    This is very annoying.
    Firefox does allow Excel 2011 to open CSV files, but for various other reasons I would like to stay on with Safari.
    All workarounds are welcome

    ..."because the developer is unknown"
    Could you provide the exact text of the message, please?
    Are you really running OS 10.5.8?
    In the meantime, two things come to mind from your description.
    Maybe Safari has added an extra suffix to the file (beyond so that Excel doesn't recognize the file type.
    Make sure the downloaded file has a .csv only at the end.
    Maybe security is kicking in.  Can you control-click on the file and select "Open"?
    charlie

  • Converting html file to csv file or excel file

    Any body help me to convert html file into csv file or excel file using java.
    I have no idea how to proceed.
    is there any third party API's available.
    Please guide me.
    Thanks in advance
    Vivek

    dev_vivek wrote:
    I have no idea how to proceed.That could be due to the fact that there is no generic way to transform a html file into a csv or excel file.
    Could it be that you're really interested in extracting specific values from the html file and then you want to export these values to csv and/or excel?

  • How to open .csv files?

    How can I open .csv files that are sent as attachments.  I get reports sent automatically from an app that only saves them as a .csv and I cannot find a way to open them on my BB.  I've looked at a few add on software options but none of the ones I've found open .csv files.
    Any ideas? 
    Thanks 
    8703e v4.1 and Blackberry Professional Software on the server

    Sorry, but .csv files are not currently a supported format.
    Supported attachment formats for BlackBerry mail and messaging

Maybe you are looking for

  • Error while posting confirmation for limit PO

    Hi Experts, we are having a standalone scenario(SRM 7) and the issue is as mentioned below The situation is that the PO is a limit order with 2 line items. The first line item is complete and has been closed off with the u201Cno further confirmation/

  • File Processing in PI - isolating an error in the payload

    Hello, I have a scenario where I don't think the requirement is feasible... Multiple idocs are created from the R/3 system and then are being generated into an xml file before PI picks it and processes it. The problem is that if one of the idocs enco

  • Document management system  configs and status

    Can anybody tell me the configs and flow of document status and document version in DMS.... Vijay

  • Content Previews

    Hey,    I like that I can change the views to thumbnails and enlarge and shrink at will... And even put it into a list mode...  But I am not liking the fact that it seems to affect every folder universally.  Is there a way to make specific folders st

  • Display spreadsheet at browser

    Hi All, I am trying to display/open the XLS(Excel Spreadsheet) in browser but it is not print the spreadsheet it is printing the data instead of spreadsheet. what I wrote in JSP <b> <% String filepath=(String)request.getAttribute("url");%> <title>My