How to judge .xls file exist?

各位大俠﹕
       Please help me to reply a queation: How do you  judge if the specifical file exist?
拜托!

Try to make everything Automatic
附件:
Untitled.vi ‏10 KB

Similar Messages

  • How to repair xls file?

    How to repair xls file? Microsoft Excel report me what file is not Excel format.

    When an Excel file is corrupted, then you can try several methods to recover it:
    1. First of all, you can try to repair the file manually in Excel, as follows:
    (1) On the File menu, click Open.
    (2) In the Open dialog box, select the file you want to open, and click the arrow next to the Open button.
    (3) Click Open and Repair, and then choose which method you want to use to recover your workbook.
    You may find more information about this at:
    http://office.microsoft.com/en-us/excel-help/repairing-corrupted-files-in-excel-HA001034656.aspx (for Excel 2003)
    http://office.microsoft.com/en-us/excel-help/repairing-a-corrupted-workbook-HA010097017.aspx?CTT=1 (for Excel 2007)
    http://office.microsoft.com/en-us/excel-help/repairing-a-corrupted-workbook-HA010342840.aspx?CTT=1 (for Excel 2010)
    http://office.microsoft.com/en-us/excel-help/repair-a-corrupted-workbook-HA102749554.aspx?CTT=1 (for Excel 2013)
    2. Second, since Excel 2003, it provides a "Document Recovery" mechanism so that when Excel is shutdown abnormally, the Excel file being edited will be recovered when Excel is launched next time, which makes the file recovery possible.
    See below:
    http://office.microsoft.com/en-us/excel-help/recover-your-office-files-HP010354299.aspx?CTT=1
    for more detailed information.
    3. If 1 and 2 does not work, then you may try third-party tools such as DataNumen Excel Repair at
    http://www.datanumen.com/excel-repair/
    It provides a free demo version so that you can try to see if the data you want can be recovered or not.
    Good luck!

  • Need a suggestion on how to process XLS files

    Hello.
    I need to process XLS files: compare 2 files and add in the first one lines from the second one. If some columns are the same, I need to add just amount (summarize numbers) and if some columns in second file are not in the first one, I need to add them to first one.
    I need a tool suggestion. First I thought it will be easily done with Python and I prefer Python but after some search I'm not so sure anymore... Seems like Python won't do it smoothly as from here it looks rather foggy how to do it.
    Please suggest something. XLS files contain tabs and I need to be able to read/write/modify inside of different tabs.

    graysky wrote:If this is a one-off
    It's not and those documents will have several thousand items each. So even one time I couldn't do it manually. Plus I'll have to do it weekly. Probably even more than once a week.
    The idea is this.
    Suppose we have "1.xls" with contects:
    +----+-------------+-----------+
    | ID | Name | Amount |
    +----+-------------+-----------+
    | 1 | apple | 2 |
    | 2 | potato | 3 |
    | 3 | cherry | 10 |
    | 4 | water-melon | 1 |
    +----+-------------+-----------+
    Then we have "2.xls":
    +----+-------------+-----------+
    | ID | Name | Amount |
    +----+-------------+-----------+
    | 4 | water-melon | 1 |
    | 5 | pumpkin | 1 |
    +----+-------------+-----------+
    And the script must sum them up basing on ID so the result must look like:
    +----+-------------+-----------+
    | ID | Name | Amount |
    +----+-------------+-----------+
    | 1 | apple | 2 |
    | 2 | potato | 3 |
    | 3 | cherry | 10 |
    | 4 | water-melon | 2 |
    | 5 | pumpkin | 1 |
    +----+-------------+-----------+
    We had 1 new element with ID 5 and it's now at the bottom. And we had 1 similar, with ID 4 — they were summed up to amount == 2.
    All this is xls and with tabs.
    Can I do it with php? “R” is just too new to me at the moment and this job will need to be done soon.
    Last edited by Mr. Alex (2013-04-03 18:19:39)

  • How convert pdf,xls file format into swf

    Hi friends
                   i am making a tool for wducation site and there i need to convert doc xls and pdf file in swf in runtime and show that in container with cropping and panning functionality.so i do it for doc file format but having no idea how to convert .pdf file format and .xls file format into swf.So please guide me how to do it.
    Thanks And Regards
        Vineet Osho

    QuickTime cannot do this of iteslf: you need to add Flip4Mac:
    http://www.telestream.net/flip4mac-wmv/overview.htm

  • How to convert xls files into xml

    hi all,
    please tell me how to convert the xls files into xml

    Hey Sayee,
    This gives you step by step procedure to start up
    saptechnical  com/Tutorials/XI/Adapter/Index.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/8b/895e407aa4c44ce10000000a1550b0/content.htm
    Regards
    Pothana

  • How to find if file exists in UTL_FILE_DIR

    One of my programs need to check if a particular file exists. How do I know if a file exists or not. Basically I have to append data to an existin file or open a new file if the file doesn't exists.
    I'm using utl_file for writin the files
    Please provide your valuable suggestion.
    Thanks

    If you are using an older version, you can also use DBMS_LOB.FILEEXISTS instead of utl_file.fgetattr, like so:
    DECLARE
      v_bfile       BFILE := BFILENAME ('MY_DIR', 'my_report.txt');
      v_file_handle UTL_FILE.FILE_TYPE;
    BEGIN
      IF (DBMS_LOB.FILEEXISTS (v_bfile ) = 1) THEN
        v_file_handle := UTL_FILE.FOPEN ('MY_DIR', 'my_report.txt', 'a');
        UTL_FILE.PUT_LINE (v_file_handle, 'continuing report');
      ELSE
        v_file_handle := UTL_FILE.FOPEN ('MY_DIR', 'my_report.txt', 'w');
        UTL_FILE.PUT_LINE (v_file_handle, 'starting report');
      END IF;
      UTL_FILE.FCLOSE (v_file_handle);
    END;

  • How to check whether file exist or not?

    hello,
    i wanted to know that how can i check whether a file exist or not independent of underlying Operating system?
    please help .
    Thank you.

    Use exists() on a File instance.

  • How to save .xls file through portal

    Currently i have a .xls file uploaded in my oracle portal. The idea is to enable all user to read only the .xls file and to enable only authorized user to read-write and save the changes made to the .xls file. How am i able to do this? Please give me a step-by-step solution since I'm very new to oracle portal 10g.
    TQ
    Edited by: user10869241 on Jan 28, 2009 4:44 PM

    If the Excel spreadsheet is published as a File Item, grant Manage access on the item (requires Item Level Access to be enabled on the page) to the authorized user (or group) that makes the updates to the spreadsheet so that s/he can upload the updated spreadsheet whenever needed. Then just grant View access on that same file item to the group(s) or individual(s) that just need to view the spreadsheet. They'll still be able to save off the spreadsheet to their pc, so utilize the protection settings in Excel, if needed.

  • How to generate .xls file on a button click in Forms 10g

    Hi
    I am using forms 10g.
    On a button click I want to generate a .csv or .xls file (data in these file should be fetched form database).
    Could you please tell me how can I do this?
    Regards

    Hello 576726,
    where do you want to store the file?
    On the client? If it uses Windows as OS and has Excel installed you can use CLIENT_OLE2, otherwise you can write files using CLIENT_TEXT_IO.
    On the server? You can use utl_file or a package that allowes to write formatted/multiple worksheets like
    https://xml-spreadsheet.samplecode.oracle.com/ or
    https://exceldocumenttype.samplecode.oracle.com/
    Another solution by Friedhold Matz is linked at Re: Gride in Oracle Formns 6i
    Regards
    Marcus
    Edited by: Marwim on 17.11.2010 07:18

  • How to read .xls file from FTP server t oInternal table

    Hi
    am using the FTP_SERVER_TO_R3 to read xls file from FTP server to internal table
    but the data i get in LT_TEXT is special characters.
    CALL FUNCTION 'FTP_SERVER_TO_R3'
    EXPORTING
    handle = hdl
    fname = f_name "ProdDataFromCRM.xls.
    * CHARACTER_MODE = 'X'
    * IMPORTING
    * BLOB_LENGTH =
    TABLES
    BLOB = lt_text
    * TEXT = lt_text
    EXCEPTIONS
    TCPIP_ERROR = 1
    COMMAND_ERROR = 2
    DATA_ERROR = 3
    OTHERS = 4
    can any one help me out to get the exact data..
    Really appreciate your quick response..
    Thank You

    Hi, if you really retrieve an excel file, you can not see the data in ABAP. You may see them in Excel. For this you may use
    CALL METHOD document->open_document_from_table
    of the interface i_oi_document_proxy for OLE objects. You can access the data with reference to the interface i_oi_spreadsheet.
    Please check [Desktop Office Integration (BC-CI)|http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCCIOFFI/BCCIOFFI.pdf] for details.
    But, who knows, perhaps you want "And Now For Something Completely Different".
    Regards
    Clemens

  • How to open xls files in Mountain Lion

    I upgraded to Mountain Lion and now cannot open xls files.  xlsx files open fine. Is there a way to convert the xls files?

    I think I have the same issue. I had xls associated with Openoffice but after upgrading xls opens with Preview. I tried to change it using CMD+I but when I select Openoffice it returns to Preview.... And yes I also tried to change the extention into xlsx but that also didn't solve the issue

  • How to import xls file to BPA11gR1

    I got business flow from customer,one xml and one xls file.
    I imported xml file as following:
    New a database.
    Run BPA(11gR1) and open above database.
    Right-click on the group and select Evaluate/Start macro. The Macro Wizard opens.
    Select the "Import Process Generator table (XML)" macro in the Macros field and click on Next.
    Specify the output settings.
    Click on Finish. The Open dialog opens.
    Select the XML file and click on Open. The data is imported.
    I can not found ProcessGenerator import(EXCEL)" in the macro filed.
    so that I try to import xls file with above method,however I do not see any result.
    I would like to know if any of you could help me,thanks.
    Edited by: user780419 on Mar 5, 2012 9:02 PM
    Edited by: user780419 on Mar 5, 2012 9:14 PM

    step1:save the xls file as .csv format to your oracle dir path.
    step2:create external table using below command
    CREATE TABLE EXT_TABLE(+col1 datatype,col2 datatype.....+)
    ORGANIZATION EXTERNAL
    (TYPE ORACLE_LOADER DEFAULT DIRECTORY directoryname
    ACCESS PARAMETERS (
    RECORDS DELIMITED BY NEWLINE
    FIELDS TERMINATED BY ','
    OPTIONALLY ENCLOSED BY '"'
    MISSING FIELD VALUES ARE NULL
    LOCATION('+filename.CSV+')
    REJECT LIMIT 0;

  • How to convert Xls file into Xml file

    Hi,
    I am trying to convert Xls file into Xml  but there  is no any direct procedure for it
    Pls help me out to convert Xls file into Xml file
    Thanks
    Anushree

    you will require to write a module in your file adapter for the same.
    ref: /people/sap.user72/blog/2005/07/04/read-excel-instead-of-xml-through-fileadapter as mentioned in the earlier post.
    Else you can also use Conversion Agent to read the same.
    Ref: http://help.sap.com/saphelp_nw04/helpdata/en/43/4c38c4cf105f85e10000000a1553f6/content.htm

  • How to repair xls file? Microsoft Excel report me what file is not Excel format.

    I need help again(( i have .xls file that cannot be opened by Excel. It reports that this file is not excel format. Can i recover it?

    When an Excel file is corrupted, then you can try several methods to recover it:
    1. First of all, you can try to repair the file manually in Excel, as follows:
    (1) On the File menu, click Open.
    (2) In the Open dialog box, select the file you want to open, and click the arrow next to the Open button.
    (3) Click Open and Repair, and then choose which method you want to use to recover your workbook.
    You may find more information about this at:
    http://office.microsoft.com/en-us/excel-help/repairing-corrupted-files-in-excel-HA001034656.aspx (for Excel 2003)
    http://office.microsoft.com/en-us/excel-help/repairing-a-corrupted-workbook-HA010097017.aspx?CTT=1 (for Excel 2007)
    http://office.microsoft.com/en-us/excel-help/repairing-a-corrupted-workbook-HA010342840.aspx?CTT=1 (for Excel 2010)
    http://office.microsoft.com/en-us/excel-help/repair-a-corrupted-workbook-HA102749554.aspx?CTT=1 (for Excel 2013)
    2. Second, since Excel 2003, it provides a "Document Recovery" mechanism so that when Excel is shutdown abnormally, the Excel file being edited will be recovered when Excel is launched next time, which makes the file recovery possible.
    See below:
    http://office.microsoft.com/en-us/excel-help/recover-your-office-files-HP010354299.aspx?CTT=1
    for more detailed information.
    3. If 1 and 2 does not work, then you may try third-party tools such as DataNumen Excel Repair at
    http://www.datanumen.com/excel-repair/
    It provides a free demo version so that you can try to see if the data you want can be recovered or not.
    Good luck!

  • How to open XLS file without Authentication

    Hi All,
    We are using SRM and we use SAP EP for accessing the SRM Screens. When we are creating a shopping cart there is a option for uploading files and we upload xls file there. The issue we are facing here is whenwe view the shopping cart, there is a link for the  uploaded XLS file. When we click on this file the portal ask for user id and password, when we click on the cancel button the xls file gets opened. But whereas the userid and password screen is not appearing for the word document.
    Is there any settings which needs to be done for bypass the userid, password screen to open the xls file.
    Thanks and Regards,
    Saravanan
    Edited by: Saravanan Sugumar on Aug 1, 2011 12:45 PM

    I think the only way you're going to be able to do this in
    Flex is to process the file on the server side using something like
    the Perl Win32::OLE module to open the file from a Perl script, and
    access the data, place it in an XML structure, and deliver it to
    Flex, all via HTTPService.
    Here is a little sample code to get you started:

Maybe you are looking for