S
sonali
when i export grid to word i got whole data but on that grid i have
some run time created images that gives some problem
images come blank
(there is grid inside table)
Dim str As String = "select * from project"
Dim dt As New DataTable
Dim objdatabase As New clsdatabase
dt = objdatabase.GetDT(str)
GridView1.DataSource = dt
GridView1.DataBind()
Response.Clear()
Response.ContentType = "application/text"
Response.AddHeader("content-disposition",
"filename=export.doc")
Response.Charset = ""
Response.Cache.SetCacheability(HttpCacheability.NoCache)
Dim tw As New System.IO.StringWriter()
Dim hw As New System.Web.UI.HtmlTextWriter(tw)
Dim frm As HtmlForm = New HtmlForm()
Me.Controls.Add(frm)
'frm.Controls.Add(GridView1)
frm.Controls.Add(TABLE1)
frm.RenderControl(hw)
Response.Write(tw.ToString())
Response.End()
please suggest something urgently
some run time created images that gives some problem
images come blank
(there is grid inside table)
Dim str As String = "select * from project"
Dim dt As New DataTable
Dim objdatabase As New clsdatabase
dt = objdatabase.GetDT(str)
GridView1.DataSource = dt
GridView1.DataBind()
Response.Clear()
Response.ContentType = "application/text"
Response.AddHeader("content-disposition",
"filename=export.doc")
Response.Charset = ""
Response.Cache.SetCacheability(HttpCacheability.NoCache)
Dim tw As New System.IO.StringWriter()
Dim hw As New System.Web.UI.HtmlTextWriter(tw)
Dim frm As HtmlForm = New HtmlForm()
Me.Controls.Add(frm)
'frm.Controls.Add(GridView1)
frm.Controls.Add(TABLE1)
frm.RenderControl(hw)
Response.Write(tw.ToString())
Response.End()
please suggest something urgently