Click here to Skip to main content
15,895,283 members
Home / Discussions / C#
   

C#

 
AnswerRe: Taborder in toolbar? Pin
Henry Minute3-Jul-09 3:11
Henry Minute3-Jul-09 3:11 
GeneralRe: Taborder in toolbar? Pin
netogg3-Jul-09 3:39
netogg3-Jul-09 3:39 
GeneralRe: Taborder in toolbar? Pin
Henry Minute3-Jul-09 3:46
Henry Minute3-Jul-09 3:46 
AnswerRe: Taborder in toolbar? Pin
DaveyM693-Jul-09 5:23
professionalDaveyM693-Jul-09 5:23 
GeneralRe: Taborder in toolbar? [modified] Pin
netogg3-Jul-09 6:05
netogg3-Jul-09 6:05 
GeneralRe: Taborder in toolbar? Pin
DaveyM693-Jul-09 6:23
professionalDaveyM693-Jul-09 6:23 
GeneralRe: Taborder in toolbar? Pin
netogg3-Jul-09 6:40
netogg3-Jul-09 6:40 
GeneralRe: Taborder in toolbar? Pin
DaveyM693-Jul-09 9:11
professionalDaveyM693-Jul-09 9:11 
GeneralRe: Taborder in toolbar? Pin
netogg3-Jul-09 12:10
netogg3-Jul-09 12:10 
GeneralRe: Taborder in toolbar? Pin
DaveyM693-Jul-09 20:02
professionalDaveyM693-Jul-09 20:02 
GeneralRe: Taborder in toolbar? Pin
netogg4-Jul-09 0:35
netogg4-Jul-09 0:35 
GeneralRe: Taborder in toolbar? Pin
DaveyM694-Jul-09 11:50
professionalDaveyM694-Jul-09 11:50 
GeneralRe: Taborder in toolbar? Pin
DaveyM696-Jul-09 23:14
professionalDaveyM696-Jul-09 23:14 
GeneralRe: Taborder in toolbar? Pin
netogg7-Jul-09 8:07
netogg7-Jul-09 8:07 
GeneralRe: Taborder in toolbar? Pin
netogg7-Jul-09 9:16
netogg7-Jul-09 9:16 
GeneralRe: Taborder in toolbar? CanSelect? Pin
netogg7-Jul-09 9:57
netogg7-Jul-09 9:57 
Questionmssql version problem Pin
leone3-Jul-09 1:51
leone3-Jul-09 1:51 
AnswerRe: mssql version problem Pin
Manas Bhardwaj3-Jul-09 2:07
professionalManas Bhardwaj3-Jul-09 2:07 
GeneralRe: mssql version problem Pin
leone3-Jul-09 5:58
leone3-Jul-09 5:58 
AnswerRe: mssql version problem Pin
K03063-Jul-09 2:21
K03063-Jul-09 2:21 
GeneralRe: mssql version problem Pin
leone3-Jul-09 6:08
leone3-Jul-09 6:08 
AnswerRe: mssql version problem Pin
Luc Pattyn3-Jul-09 6:20
sitebuilderLuc Pattyn3-Jul-09 6:20 
QuestionReading excel file in blocks Pin
sankar i3-Jul-09 1:28
sankar i3-Jul-09 1:28 
AnswerRe: Reading excel file in blocks Pin
padmanabhan N3-Jul-09 1:44
padmanabhan N3-Jul-09 1:44 
AnswerRe: Reading excel file in blocks Pin
moon_stick3-Jul-09 3:25
moon_stick3-Jul-09 3:25 
I assume you're talking about loading the data from an excel spreadsheet into a datatable (for example). I wrote the following snippet that will extract the top 10 lines from an excel file using a database connection:
static void Main(string[] args)
        {
            string connStr = @"Provider=Microsoft.Jet.OLEDB.4.0;;Data Source=C:\temp\XlsJetTest.xls;Extended Properties=""Excel 8.0;HDR=Yes;IMEX=1"";";
            OleDbConnection conn = new OleDbConnection(connStr);
            OleDbCommand comm = new OleDbCommand("select top 10 * from [Sheet1$]", conn);
            conn.Open();

            OleDbDataAdapter da = new OleDbDataAdapter(comm.CommandText, conn);
            DataTable dt = new DataTable();
            da.Fill(dt);

            Console.WriteLine("RowCount:\t{0}", dt.Rows.Count);
            Console.ReadLine();
        }


A little bit of SQL manipulation should allow you to be able to 'page' through chunks of the spreadsheet (you might have to write a couple of functions to do something clever).

It definitely isn't definatley

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.