forum-informatico
Gostaria de reagir a esta mensagem? Crie uma conta em poucos cliques ou inicie sessão para continuar.
Ajude a Asast
Patrocinadores
Últimos assuntos
» Artigo ethereum
Get the value of an Excel file cell EmptyTer Set 24, 2019 1:16 pm por jpmartins

» Artigo Bitcoin
Get the value of an Excel file cell EmptyTer Set 24, 2019 1:13 pm por jpmartins

» Novo site para desportistas / New site for athletes
Get the value of an Excel file cell EmptyTer Dez 04, 2018 8:19 am por Admin

» Check used port with the command line
Get the value of an Excel file cell EmptyTer Dez 04, 2018 8:10 am por Admin

» Check the port where mariaDB is running
Get the value of an Excel file cell EmptySeg Dez 03, 2018 4:59 am por Admin

» Check the linux version
Get the value of an Excel file cell EmptySeg Dez 03, 2018 3:12 am por Admin

» Granting rights to a database for a user
Get the value of an Excel file cell EmptyQui Nov 29, 2018 2:04 am por Admin

» Create new user
Get the value of an Excel file cell EmptyQui Nov 29, 2018 2:01 am por Admin

» Change level of password security level
Get the value of an Excel file cell EmptyQui Nov 29, 2018 1:59 am por Admin

AdSense
Contributo

Get the value of an Excel file cell

Ir para baixo

Get the value of an Excel file cell Empty Get the value of an Excel file cell

Mensagem  Admin Qua Jan 08, 2014 6:30 am

Here is the code to obtain the value of a given Excel file's cell:

Código:

Workbook xlWorkBook = xlApp.Workbooks.Open(filename, 0, true, 5, "", "", true, XlPlatform.xlWindows, "\t", false, false, 0, true, 1, 0);
Worksheet xlWorkSheet = (Worksheet)xlWorkBook.Worksheets.get_Item(1);
Range rangeValue = xlWorkSheet.get_Range(xlWorkSheet.Cells[1, 1], xlWorkSheet.Cells[1, 1]);
string value = rangeValue.Text
Admin
Admin
Admin

Mensagens : 607
Data de inscrição : 21/01/2008
Idade : 47

https://forum-informatico.forumeiros.com

Ir para o topo Ir para baixo

Ir para o topo

- Tópicos semelhantes

 
Permissões neste sub-fórum
Não podes responder a tópicos