hi,
I'm using the below code in asp.net. But it fails to compile in machine and runs in another machine. I'm using excel 11.0 as reference. Both the machines are running on Windows XP Pro.
ExcelApp = new Application(); ExcelWorkbook = (_Workbook)(ExcelApp.Workbooks.Add(Type.Missing)); ExcelWorkSheet = (_Worksheet)ExcelWorkbook.Sheets["Sheet1"];
ExcelWorkSheet.Cells[3, 1] = "Agent Name"; ExcelWorkSheet.Cells[3, 2] = txtAgentName.Text;
ExcelWorkSheet.get_Range("A3", "E41").EntireColumn.AutoFit(); ExcelApp.Visible = true; ExcelApp.DisplayFullScreen = false;
Can any one guide/suggest me.
Thanks and Rgds,
PLS |