Grid lines in Microsoft word

D

Dinesh Patil

Hi,
I am curently exporting a repeater control data to Microsoft Word 2003 using
following code:

this.Page.Response.Clear();
this.Page.Response.Buffer = true;
this.Page.Response.AddHeader( "Content-Disposition", "GridLines Data");
this.Page.Response.Charset= "iso-8859-1";
this.Page.Response.ContentType="application/msword";

ItemsGrid.EnableViewState = false;
System.IO.StringWriter tw=new System.IO.StringWriter();
System.Web.UI.HtmlTextWriter hw = new HtmlTextWriter(tw);

ItemsGrid.RenderControl(hw);

HttpContext.Current.Response.Write(tw.ToString());
HttpContext.Current.Response.End();

As soon as it gets exported, we can see the repeater control data in Word
document. But there some grey colored gridlines with it. These gridlines can
easily be made hidden/removed manually by clicking Table->Hide Gridlines.
But I want to remove them programatically. Gridlines should be made hidden
when repeater is exported to MS Word.

Thanx.
 
Top