473,503 Members | 1,697 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

export runtime created images to word (urgent)

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.No Cache)
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

Jul 27 '06 #1
0 915

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
11005
by: Tim Eliot | last post by:
Just wondering if anyone has hit the following issue and how you might have sorted it out. I am using the command: DoCmd.TransferText acExportMerge, , stDataSource, stFileName, True after...
4
21455
by: Paolo | last post by:
Hello, I am trying to create a procedure to export my Access data to a word template. I would like to export data from two tables to a word file at the same time. My two tables are named CASES...
3
4055
by: Bob Dydd | last post by:
Hi Everybody I have an Access 2000 db with a setup for inserting images in records. I am using the image path only with the actual images stored elswhere on the hard disc. This works perfectly...
8
12246
by: Arvind P Rangan | last post by:
Hi all, Have you worked on any project or example where in we can export data to Word Format with Page Brakes and Header & Footer Template. This is very important for my assignment. Thanks...
0
1246
by: garth | last post by:
I created a Crystal Report that looks perfect when exported to Word, but the box and lines I use to simulate a table in the Crystal Report does not get created as a table in Word. Instead, it is...
7
2574
by: tinman | last post by:
Hi, nooB here, I came here cause you folks know WAY more than I do. I'm an artist, I use access 2002 to organize records of my paintings, which include images of each one. Often I want to email...
6
4606
by: Eric Layman | last post by:
Hi, I have fields from textareas. With a click of a button, php is able to grab these fields and by using header(), convert the output to Ms Word doc. But the outcome of the word doc...
1
3867
by: mudasserrafiq | last post by:
I am using following asp file default.asp <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <META http-equiv=Content-Type content="text/html; charset=windows-1252"> <META content="0...
2
972
by: imranabdulaziz | last post by:
Hi all, I am using Asp.net , C# Visual studio 2005. I want to export data that contains images and textual data to word. Please give me some useful link …… Thank you.
0
7199
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7074
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7273
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7322
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5572
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4667
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3161
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3150
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
731
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.