TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
alainc
NA
23
0
Exporting datagrid to excel: Format cells?
Feb 28 2005 3:43 AM
I'm exportin a datagrid to excel, but Excel file is without format colors cells border... Do you know how format it? thanks this is my code: Response.Clear(); Response.AddHeader("Content-Disposition", "attachment; filename=exportar.xls"); Response.Buffer= true; Response.ContentType = "application/vnd.ms-excel"; Response.Charset = ""; this.EnableViewState = false; System.IO.StringWriter oStringWriter = new System.IO.StringWriter(); System.Web.UI.HtmlTextWriter oHtmlTextWriter = new System.Web.UI.HtmlTextWriter(oStringWriter); dgNopaginado.Caption= ddPlanta.SelectedItem + ": "+ txtFechaIni.Fecha+"-"+txtFechaFin.Fecha; this.ClearControls(dgNopaginado); dgNopaginado.RenderControl(oHtmlTextWriter); Response.Write(oStringWriter.ToString()); Response.End();
Reply
Answers (
0
)
UML
Select Count() if else