Hii
i have a problem displaying an excel file with the same format as it is on microsoft excel..(Merged Cells,Backcolors,etc...)
First i read the file and return the results on a data table...but it doesn't hold the same format as it is on excel is there a way to display it in HTML format without using the excel library as it will be on a website so the user doesn't have to have an installed version of microsoft office????
any help would be great
Thankssssssssss
Loading

Morcos AdelPosted May 26, 2011, 5:11 AM
any ideas????
Sam HobbsPosted May 26, 2011, 5:09 AM
Morcos AdelPosted May 26, 2011, 4:49 AM
using this :
ExcelSchema = ExcelConnection.GetOleDbSchemaTable(
OleDbSchemaGuid.Tables, null);Sam HobbsPosted May 26, 2011, 3:41 AM
Morcos AdelPosted May 26, 2011, 3:25 AM
scenario:
i have an excel file which i read using oledbcommand and an OleDbDataAdapter...now all i need is to make the data in this excel file to be displayed on my page with the same styles as it is on the original excel file...(merged cells,Backcolors,etc..)
i hope i explained it right this time
thank you again
any ideas?????
Sam HobbsPosted May 25, 2011, 3:48 PM
Posted May 25, 2011, 3:04 PM
Suthish NairPosted May 25, 2011, 2:17 PM
Posted May 25, 2011, 2:10 PM
http://mattberseth.com/blog/2007/04/export_gridview_to_excel_1.html
http://www.codeproject.com/KB/webforms/DAtaGridExportToExcel.aspx
http://weblogs.asp.net/datagridgirl/archive/2003/04/14/5631.aspx
http://aspalliance.com/725_CodeSnip_Export_a_DataGrid_to_a_Formatted_Excel_Spreadsheet
http://dotnetguts.blogspot.com/2006/10/export-datagrid-data-to-excel-aspnet_15.html
http://dotnetguts.blogspot.com/2007/12/export-datagrid-to-excel-in-aspnet.html
Suthish NairPosted May 25, 2011, 12:39 PM
Export to Excel, Word with css (Cascading Style Sheets)
Export Data from GridView to Excel, Word, HTML with C#
Export Gridview/Listview to Excel with Color formatting