export runtime created images to word (urgent)

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,565
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top