Results 1 to 3 of 3

Object Format

Threaded View

  1. #1
    Registered User
    Join Date
    01-20-2011
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    79

    Object Format

    Hi, I use C # to create/open file.
    Excel.Application xlApp;
                Excel.Workbook xlWorkBook;
                Excel.Worksheet xlWorkSheet;
                Excel.Range range;
    
                openFileDialog1.Filter = "(*.xls)|*.xls|(*.xlsx)|*.xlsx";
                openFileDialog1.Title = "Select an excel file";
                if (openFileDialog1.ShowDialog() == DialogResult.OK)
                    fname = openFileDialog1.FileName;
                xlApp = new Excel.ApplicationClass();
                xlWorkBook = xlApp.Workbooks.Open(fname, 0, true, 5, "", "", true, Microsoft.Office.Interop.Excel.XlPlatform.xlWindows, "\t", false, false, 0, true, 1, 0);
                xlWorkSheet = (Excel.Worksheet)xlWorkBook.Worksheets.get_Item(1);
    5 in this statement is Object foramt,
    xlWorkBook = xlApp.Workbooks.Open(fname, 0, true, 5, "", "", true, Microsoft.Office.Interop.Excel.XlPlatform.xlWindows, "\t", false, false, 0, true, 1, 0);
    but what is meant by 5?
    Last edited by zhshqzyc; 01-31-2011 at 11:18 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1