Click here to Skip to main content
15,893,588 members
Home / Discussions / C#
   

C#

 
Questionwhat to use instead of 'var' in vs 2005 as for the projects developed in vs2005. Pin
svt gdwl20-Jul-09 5:00
svt gdwl20-Jul-09 5:00 
AnswerRe: what to use instead of 'var' in vs 2005 as for the projects developed in vs2005. Pin
Mirko198020-Jul-09 5:05
Mirko198020-Jul-09 5:05 
AnswerRe: what to use instead of 'var' in vs 2005 as for the projects developed in vs2005. Pin
PIEBALDconsult20-Jul-09 5:57
mvePIEBALDconsult20-Jul-09 5:57 
AnswerRe: what to use instead of 'var' in vs 2005 as for the projects developed in vs2005. Pin
Ennis Ray Lynch, Jr.20-Jul-09 7:25
Ennis Ray Lynch, Jr.20-Jul-09 7:25 
GeneralRe: what to use instead of 'var' in vs 2005 as for the projects developed in vs2005. Pin
Luc Pattyn20-Jul-09 7:51
sitebuilderLuc Pattyn20-Jul-09 7:51 
GeneralRe: what to use instead of 'var' in vs 2005 as for the projects developed in vs2005. Pin
Ennis Ray Lynch, Jr.20-Jul-09 8:02
Ennis Ray Lynch, Jr.20-Jul-09 8:02 
GeneralRe: what to use instead of 'var' in vs 2005 as for the projects developed in vs2005. Pin
Luc Pattyn20-Jul-09 8:06
sitebuilderLuc Pattyn20-Jul-09 8:06 
GeneralRe: what to use instead of 'var' in vs 2005 as for the projects developed in vs2005. Pin
PIEBALDconsult20-Jul-09 8:43
mvePIEBALDconsult20-Jul-09 8:43 
GeneralRe: what to use instead of 'var' in vs 2005 as for the projects developed in vs2005. Pin
Ian Shlasko20-Jul-09 10:23
Ian Shlasko20-Jul-09 10:23 
GeneralRe: what to use instead of 'var' in vs 2005 as for the projects developed in vs2005. Pin
PIEBALDconsult20-Jul-09 10:53
mvePIEBALDconsult20-Jul-09 10:53 
GeneralRe: what to use instead of 'var' in vs 2005 as for the projects developed in vs2005. Pin
Ian Shlasko20-Jul-09 11:23
Ian Shlasko20-Jul-09 11:23 
GeneralRe: what to use instead of 'var' in vs 2005 as for the projects developed in vs2005. Pin
PIEBALDconsult20-Jul-09 12:03
mvePIEBALDconsult20-Jul-09 12:03 
GeneralRe: what to use instead of 'var' in vs 2005 as for the projects developed in vs2005. Pin
S. Senthil Kumar20-Jul-09 19:28
S. Senthil Kumar20-Jul-09 19:28 
GeneralRe: what to use instead of 'var' in vs 2005 as for the projects developed in vs2005. Pin
PIEBALDconsult20-Jul-09 19:32
mvePIEBALDconsult20-Jul-09 19:32 
GeneralRe: what to use instead of 'var' in vs 2005 as for the projects developed in vs2005. Pin
N a v a n e e t h20-Jul-09 15:35
N a v a n e e t h20-Jul-09 15:35 
Questionscan using Twain in c#.net Pin
balu1234520-Jul-09 4:09
balu1234520-Jul-09 4:09 
AnswerRe: scan using Twain in c#.net Pin
DaveyM6920-Jul-09 4:17
professionalDaveyM6920-Jul-09 4:17 
AnswerRe: scan using Twain in c#.net Pin
DaveyM6920-Jul-09 4:31
professionalDaveyM6920-Jul-09 4:31 
GeneralRe: scan using Twain in c#.net Pin
Luc Pattyn20-Jul-09 4:50
sitebuilderLuc Pattyn20-Jul-09 4:50 
GeneralRe: scan using Twain in c#.net Pin
DaveyM6920-Jul-09 5:18
professionalDaveyM6920-Jul-09 5:18 
Questionread a excel and show it in datagrid c# Pin
Bird3720-Jul-09 4:07
Bird3720-Jul-09 4:07 
Hi,
i can read a excel File but i can´t populate it on a datagrid. Can somebody help me?
That´s my code:
private void button1_Click(object sender, EventArgs e)
{
this.openFileDialog1.FileName = "*.xls";

if (this.openFileDialog1.ShowDialog() == DialogResult.OK)
{
ApplicationClass xlApplication = new ApplicationClass();
Workbook xlWorkbook = null;

Worksheet xlWorksheet = null;

Range xlRange = null;

xlApplication.Visible = false;
xlApplication.ScreenUpdating = false;
xlApplication.DisplayAlerts = false;

string workbook = this.openFileDialog1.FileName;
xlWorkbook = xlApplication.Workbooks.Open(openFileDialog1.FileName, 0, true, 5, "", "", true, XlPlatform.xlWindows, "\t", false, false, 0, true, 0, false);

xlWorksheet = (Worksheet)xlWorkbook.Worksheets[1];

}
}

Now, how can i report this excel in my datagrid?

Thanks
AnswerRe: read a excel and show it in datagrid c# Pin
Adam R Harris20-Jul-09 5:53
Adam R Harris20-Jul-09 5:53 
GeneralRe: read a excel and show it in datagrid c# Pin
Wendelldh21-Jul-09 3:52
Wendelldh21-Jul-09 3:52 
GeneralRe: read a excel and show it in datagrid c# Pin
Adam R Harris21-Jul-09 6:20
Adam R Harris21-Jul-09 6:20 
QuestionLPR failed after 10 jobs Pin
balu1234520-Jul-09 4:06
balu1234520-Jul-09 4:06 

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.