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


Suthish NairRank #92 · 22.8K reputationPosted May 25, 2011, 8:39 AM EDT
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
Posted May 25, 2011, 10:10 AM EDT
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 NairRank #92 · 22.8K reputationPosted May 25, 2011, 10:17 AM EDT
Posted May 25, 2011, 11:04 AM EDT
Sam HobbsRank #107 · 20.5K reputationPosted May 25, 2011, 11:48 AM EDT
Morcos Adel115 reputationPosted May 25, 2011, 11:25 PM EDT
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 HobbsRank #107 · 20.5K reputationPosted May 25, 2011, 11:41 PM EDT
Morcos Adel115 reputationPosted May 26, 2011, 12:49 AM EDT
using this :
ExcelSchema = ExcelConnection.GetOleDbSchemaTable(
OleDbSchemaGuid.Tables, null);Sam HobbsRank #107 · 20.5K reputationPosted May 26, 2011, 1:09 AM EDT
Morcos Adel115 reputationPosted May 26, 2011, 1:11 AM EDT
any ideas????