Dynamic Generation of Word Document Report in ASP.NET with HTML
page 1 of 1
Published: 31 Mar 2006
Unedited - Community Contributed
Abstract
In this article, Vishal demonstrates how simple it is to use ASP.NET to generate MS Word reports as HTML dynamically in a visually rich and appealing format.
by Vishal Patil
Feedback
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 52149/ 34

Overview

Ever needed to generate Word documents from your ASP.NET applications? There are a couple of components which will help to generate Word documents, but using these components may have some overhead such as Component Registration, setting permissions, licenses, etc., Sometimes, it may even become difficult to understand their features and use them. Generating word document in ASP.NET with HTML is incredibly easy.

The following sample demonstrates how to place Heading and Table dynamically in the word document in ASP.NET web applications using HTML.

Requirements

Microsoft Visual Web Developer 2005 Express Edition

Create the Web Application project

Add the new Web Site Application project (with name as Generate Word Document) and place the button (with name as btnGenerateDocument) in the Default.aspx web form as shown below.

Figure 1

Double click the highlighted code behind file from the Solution Explorer and add the following namespaces.

Listing 1

using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;

Finally, paste the following code in the button click event

Listing 2

HttpContext.Current.Response.Clear();
HttpContext.Current.Response.Charset ="";
 
HttpContext.Current.Response.ContentType ="application/msword";
 
string strFileName = "GenerateDocument"+ ".doc";
HttpContext.Current.Response.AddHeader("Content-Disposition",
  "inline;filename=" + strFileName);
 
StringBuilder strHTMLContent = newStringBuilder();
 
strHTMLContent.Append(
  " <h1 title='Heading' align='Center'style='font-family: verdana; font -size: 80 % ;
 color: black'><u>Document Heading</u> <  / h1 > ".ToString());
 
strHTMLContent.Append("<br>".ToString()); strHTMLContent.Append(
  "<table align='Center'>".ToString());
 
// Row with Column headers
strHTMLContent.Append("<tr>".ToString()); strHTMLContent.Append(
  "<td style='width:100px; background:
# 99CC00'><b>Column
1 <  / b >  <  / td >".ToString());
 
strHTMLContent.Append("<td style='width:100px;background:
# 99CC00'><b>Column
2 <  / b >  <  / td >".ToString());
 
strHTMLContent.Append("<tdstyle='width:100px; background:
# 99CC00'><b>Column 3</b>
 <  / td >".ToString());strHTMLContent.Append(" <  / tr > ".ToString());
 
// First Row Data
strHTMLContent.Append("<tr>".ToString()); strHTMLContent.Append(
  "<td style='width:100px'>a</td>" .ToString()); strHTMLContent.Append(
  "<td style='width:100px'>b</td>" .ToString()); strHTMLContent.Append(
  "<td style='width:100px'>c</td>" .ToString());strHTMLContent.Append("</tr>"
  .ToString());
 
// Second Row Data
strHTMLContent.Append("<tr>".ToString()); strHTMLContent.Append(
  "<td style='width:100px'>d</td>" .ToString()); strHTMLContent.Append(
  "<td style='width:100px'>e</td>" .ToString()); strHTMLContent.Append(
  "<td style='width:100px'>f</td>" .ToString()); strHTMLContent.Append("</tr>"
  .ToString());
 
strHTMLContent.Append("</table>".ToString());
 
strHTMLContent.Append("<br><br>".ToString()); strHTMLContent.Append(
  "<p align='Center'> Note : This is adynamically generated word document  <  / p > ".ToString());
HttpContext.Current.Response.Write(strHTMLContent);
HttpContext.Current.Response.End();
HttpContext.Current.Response.Flush();

In the above listing, first the Response object is cleared, charset is set to empty and then Content type is set to MS Word.

Filename is defined for the document which will be generated through this code and this is set to the "Content-Disposition" header of the Response object.

Now to the StringBuilder variable -- it is an HTML representation of the heading and table with three columns and two rows along with column headers and data appended. This content will be displayed in the Word document when it is generated.

Once the contents to be displayed in the document are set, the Response object’s Write, End and Flush methods send the output to the browser, where the user's copy of Microsoft Word will open the content and render it as a Word document.

Run the Web Application

Once the application is run, the following screen is displayed in the browser.

Figure 2

 

Click the Generate Document button in the above screen upon which the following prompt will be displayed to open or save the document.

 

 

 

 

Figure 3

Now save the document to some location in the system and then open it to see the contents in the document. Document contents will be as follows:

Figure 4

Downloads

[Download Sample]

Conclusion

In this article, we have seen how easy it is to dynamically generate Word reports in ASP.NET using HTML.

 

Resources

Dynamic Excel Reports in ASP



User Comments

Title: Inserting Image into word document   
Name: Goutam
Date: 2012-10-23 8:06:27 AM
Comment:
Vishal,

I am sure you are tired of mailing this, but if you could also email me the source code on how to do this, I would really appreciate it.
My id is goutamjucse@gmail.com
Title: Asp.net   
Name: Anil
Date: 2012-10-19 11:26:17 AM
Comment:
I like this project but i need in vb script, Can you plz help me..?
Thank you, Advance.
e-mail-ID:anilkumara16@gmail.com
Title: loan offer   
Name: makelee john
Date: 2012-08-25 4:39:30 PM
Comment:
I am a private loan lender Mr.makelee john, we do have some branches
around the world such in United State,U.K,Canada,I give out loan to
Business Men and women who are into Business transaction, I give out
long term loan for three to five years maximum with your interest in
this you can as well tell me the amount you need so that I senda loan
from me to you the terms and condition that is if you are really
interested in getting , Loan is given
out in Pounds and $US the maximum I give is 5,000,000 both in pounds
and $US and the minimum 5,000 pounds and US$ so if really you are
interested mail for more info on how the loan can be transferred to
you. There is one Question I have to ask are a serious individual that
we take a loan and pay back after duration with the interest, if you
are honest I will trust you because I like to do business with Honest
people if you are one you will get the loan with out problem and for
your information if you should need more loan like $10,000,000m I
can give only if you are one of these categories:
Manager of a company
A private Holder
A broker in banks
A director in any office or company
A high investor of a company
If you are one of the following you can get $10,000,000US as loan or if
personal loan you can request for 5,000-5,000,000 as loan. Hope to here
from you soon.
for more you have to fill out the following informations: Thanks
BORROWERS DATA FORM
1)YOUR NAME.........................................
2)YOUR COUNTRY...................................
3)YOUR OCCUPATION.............................
4)YOUR MARITAL STATUS......................
5)PHONE NUMBER..................................
6)MONTHLY INCOME..............................
7)ADDRESS......................................... ..
PURPOSE......................................... ...
9)LOAN REQUEST...................................
10)TELEPHONE...................................... ..
11)LOAN DURATION.................................
Title: how to get word   
Name: mais nazar
Date: 2012-07-08 3:39:05 AM
Comment:
hi
can you send me please the code for get word document form in my asp.net page using C# with clicking on button field of the grid view(select button) to get some information from my SQL2008 R2 Database ?
my Email : maisnazar@hotmail.com
thanx
Title: Mr   
Name: mdrayhankhan
Date: 2012-05-03 10:27:33 AM
Comment:
Thanks. This is very useful for me.
Title: How to insert images   
Name: Deepak
Date: 2012-03-27 10:07:42 AM
Comment:
Hi,
Can you please send me the code to insert images and header/footer into the word document?
My Email ID is deepakg_rao@yahoo.co.in
Thanks,
Deepak
Title: Great   
Name: Aklile Fantahub
Date: 2011-11-28 7:23:14 AM
Comment:
Thank you.Atleast You give me a hint.
Would you please send me a full source code.

My e-mail Address is :aklilenet@yahoo.com
Title: Pls send me the source code   
Name: tuan nguyen
Date: 2011-11-07 8:48:29 PM
Comment:
Hi! Thank you for publishing the source code. Can you send me a full source code version that allows embed the image in background.

My e-mail ID:nguyenductuan1982@gmail.com
Title: Footer and header text   
Name: V.Vinil Bradesh
Date: 2010-12-21 5:16:05 AM
Comment:
Hi,

Can you please help me to export header and footer text in word doc usins asp.net.

MailID:vinilprofile@gmail.com
Title: insert text and page number to the footer   
Name: Ellaiyaraja
Date: 2010-11-15 11:34:44 PM
Comment:
Hi,
when I insert text and page number to the footer, it also puts them into the body at the end of the last page. Is there a way to solve this? or is there any better way to insert text and page number in the footer without display them in the body of the word document?

Please send me the code its urgent.
ellaiyaraja.b@gmail.com

Thanks
Title: Convert   
Name: Raj
Date: 2010-09-14 3:58:05 AM
Comment:
Good one...
how to convert doc file to xml file in.net
Title: Thanks   
Name: Ravi
Date: 2010-09-06 7:45:02 AM
Comment:
Please suggest if data in multiple pages what about header and footer
Title: Get Page Number in dynamic word   
Name: Tatiana Gonzalo
Date: 2010-08-18 6:06:53 PM
Comment:
For my asp.net application I generated a dynamic word document with your code. Once the document has been generated, when the user selects the Print option I need to find a specific text ("Payment Table" for example), get its page number and print just that page. Is that possible? please help
tatygonq@gmail.com
Title: thanks   
Name: amit gupta
Date: 2010-08-13 7:39:23 AM
Comment:
thanks to publish this code, this help me lot to develop my project, Please can u give code of printing image on word file using this code.
Title: Open in print layout   
Name: gnanadesigan
Date: 2010-07-09 6:10:32 AM
Comment:
Hello Sir,
It works well in my project.but my query is to open the word file in web layout by default,I want to open the word file in Print Layout format.suggest me any option to open in print layout format.
thank u
Title: Very good.   
Name: Reza Shamloo
Date: 2010-07-02 10:49:05 AM
Comment:
Dear sir , I see your idea so I think : it's one of the best Article that I had read...Thanks,Thanks,...
Title: Saving this document?   
Name: Nick
Date: 2010-06-14 11:11:09 PM
Comment:
Hello Sir, could you please guide us for SAVING this document instead of opening directly? Thanks in advance.
Title: Inserting Bullets   
Name: Jaime
Date: 2010-06-09 4:00:56 PM
Comment:
Hi, I am trying to create bullets from the HTML code to appear in my generated Word document. So far I have tried <--span style='font-size:9.0pt;font-family:Symbol'>· <--/span> but that displays a strange R letter in front of the bullet. Can someone tell me the appropriate HTML tag to create a bullet when exporting to Word? Thanks.
Title: Background Image is not Appearing   
Name: Amar Trivedi
Date: 2010-06-03 12:50:15 AM
Comment:
This code is working perfectly untill any html tag doesn't have background image.....

In doc File the background image is not appearing but when we use simple img tag then the image is appearing perfectly.....

my email id is: amar.10689@hotmail.com
Title: insert/embed image   
Name: Joanne
Date: 2010-05-08 4:44:23 AM
Comment:
can you please kindly send me the code to insert/embed image into the .doc? My email is joanchew@yahoo.com
Title: Application Developer & Support Technician   
Name: Hetal Patel
Date: 2010-04-29 12:28:57 AM
Comment:
Thank you very much for this article. It's probably the simplest way to generate word document using asp.net

Falcon, try to set style for the border of the table in the html code it self.
Title: Button click issue   
Name: Falcon
Date: 2010-04-16 2:39:03 AM
Comment:
Hi,
This article is very useful and i'm able to get the word document. The concern is, i'm not able to click the asp button second time ie; once i click it i get the document but 2nd click doesn't work. i have to refresh the page to get the click event working.

Any help is highly appreciated.

Thanks,
Falcon
Title: how to remove the border for the table which is present in word document   
Name: subramanyam
Date: 2010-03-11 10:59:34 PM
Comment:
hi all,
please help me how to remove the border for the table present in word document.
i tried in many ways.but we r getting 2 borders.i can make the outside border colour white.but inside one more border is coming.how to remove the border of that table..please help.
Title: Mr   
Name: Serve
Date: 2010-02-22 7:16:41 AM
Comment:
All this does is explain the principle, but it's not best practice at all. Get your data into XML and XSLT it into a string variable which you then push into the Response.

I can just see all the lines of for loops written from this example to take a dataset into an HTML table or something.

Horrid!
Title: show many record in a html report from database   
Name: Dharmendra singh
Date: 2010-01-19 5:32:12 AM
Comment:
Can aneone help me how to show many record in a html report fom database


plz send code in my email

1984.dharmendra@gmail.com
Title: Insert img into doc   
Name: Andreas
Date: 2009-12-09 6:44:53 AM
Comment:
hello can anyone send me the code for embedding images into the .doc file?

thanks

mr.scht@gmx.de
Title: setting page   
Name: Ripu Daman Singh
Date: 2009-10-23 12:30:13 AM
Comment:
Can nyone help me how to set margins in this word document automatically....i mean at the time of taking printout one should not need to set page from FILE menu..it will be automatically set after clincking on print button or the button one have taken to get this report..

i want to take this report on legal page by default...reply plz...


my mail id is...

singhripudaman@ymail.com

reply plz i'll wait...
Title: setting page   
Name: Ripu Daman Singh
Date: 2009-10-23 12:28:08 AM
Comment:
Can nyone help me how to set margins in this word document automatically....i mean at the time of taking printout one should not need to set page from FILE menu..it will be automatically set after clincking on print button or the button one have taken to get this report..

i want to take this report on legal page by default...reply plz...
Title: HTML to Word on fly in ASP.Net   
Name: Manfred
Date: 2009-09-29 6:22:00 AM
Comment:
I've found the HTML-to-RTF Pro DLL .Net from www.sautinsoft.com.
This is a .Net library which I used to export ASPX / HTML page to Word.
I've specifed landscape format, page size and margins in dll properties for printing. It was very simple to integrate it.
Title: Dynamic Word File Generation   
Name: Abhi
Date: 2009-07-31 6:38:13 PM
Comment:
As I click on the Generate Document button it asks me to save my .aspx page instead of word document.
Title: put image   
Name: spok
Date: 2009-06-11 11:09:07 AM
Comment:
It is HTML code !! just put the IMG tag for your image. Your image must be accesible on Internet
Title: Yep   
Name: Stuzilla
Date: 2009-05-21 10:16:19 PM
Comment:
To TooManyIndians, please note that the gentleman who wrote this article is probably of Indian descent. How many bits of code do you swipe from Indian people? Anyhows, its not in the code, its in the engineering. Also a load of them are going to get spammed beyond the boundries of the universe as they put open emails :-)
Title: Indians!   
Name: TooManyIndians
Date: 2009-05-21 11:00:26 AM
Comment:
Notice how all the people asking for sample code and "please help me insert image" just happened to be Indian software devs?
Title: insert image in word   
Name: vijay
Date: 2009-05-18 3:36:22 PM
Comment:
can you please send me code for inserting image into word doc

thanks in advance
vijayg2004@gmail.com
vijay
Title: Landscape format   
Name: hitesh
Date: 2009-05-14 6:03:21 AM
Comment:
Please send me some documentations on how to display and print a word document in landscape format using html through asp.net with c#

My email is hitesh2085@gmail.com
Title: Landscape format   
Name: Hooman
Date: 2009-04-30 11:35:52 AM
Comment:
Please send me some documentations on how to display and print a word document in landscape format using html.

emial: hoomanirn@hotmail.com
Title: how to export(embed not by link) image into a word document   
Name: M Saclot
Date: 2009-04-23 5:08:04 PM
Comment:
hi.. i'm having a hard time exporting(what i mean is embed and not by link since it can't be viewed if i will not have the internet connection) and image into a word document using mhtml & this method. Please help please...

My email is mimendoz0209@yahoo.com.

Your help will be greatly appreciated. Thanks again.
Title: Inserting Image   
Name: P G Kulkarni
Date: 2009-04-13 10:45:40 AM
Comment:
Thanks for the great article. Can anybody help me with the code to insert an image into the word document ?

My email ID "pgkulkarni@gmail.com"

Thanks a lot in advance.
Title: how to export a image into word?   
Name: Dhanasekaran
Date: 2009-03-23 9:08:41 AM
Comment:
Its really a good article.
Could you please also send me the code to insert an image into the word document. my email ID "dhansmani@gmail.com"
Thanks in advance.
Title: Word template   
Name: Harish
Date: 2009-03-19 7:02:32 AM
Comment:
Can you please tell me how to modify a word template using this method
my e-mail adddress is haran_pec@yahoo.com
Title: thanks   
Name: vijay
Date: 2009-03-19 3:07:29 AM
Comment:
hi, thanks a lot for your this help.
Title: FIGURE 3   
Name: Sridhar R
Date: 2009-03-10 11:55:39 PM
Comment:
Hi Sir,
I am doing the same work what you had done.But, i dont want to show the FIGURE 3.Whenever i click the Generate Document, a word document should get generated and it should be automatically saved in default location...How to achieve this...

Regards
Title: save the word file on server automatically   
Name: Ajay
Date: 2009-03-10 6:32:09 AM
Comment:
Hi,
how can i save or upload the word file on server without opening this file on browser.

Thanks
ajay
ajay@netsouls.net
Title: HTML REPORT   
Name: Kasinathan
Date: 2009-02-04 3:13:09 AM
Comment:
hi this one is nice.
how to retrieve the dates from table & how to assign the html report?
this is my mail id : kasi5a@gmail.com. if any one know plz send me
Title: help me out   
Name: saxena
Date: 2009-01-29 3:09:59 AM
Comment:
HI I GENERATEd WORD DOCUMENT,,,, BUT PROBLEM IS
WHEN I CLICK GENERATE DOCUMENT... IT SHOWS WINDOW TO OPEN OR SAVE OR CANCEL... WHENE I CLICK SAVE THERE IS NO PROBLEM
BUT WHEN I CLIK OPEN IT IS OPENING IN SAMPE WEB PAGE...
I WANT OPEN IN NEW WORD PAD.&i want insert image,&i want to save document in some location directly with out asking tosaveor open.IF POsSIBLE MAIL ME

saxenarangu@gmail.com
Title: Great Article   
Name: venkat
Date: 2009-01-22 6:01:58 AM
Comment:
Hi,
Its really a good article.
But using this code,how to export a image into word?
Thanks in advance.
Title: Thanks   
Name: Evgeny
Date: 2009-01-07 11:22:20 PM
Comment:
Thanks a lot!
Title: Thanks   
Name: asp.net programmer
Date: 2008-10-31 6:29:19 AM
Comment:
Nice example. Exactly what I was looking for.
Title: Excellent   
Name: Rajendra kumar
Date: 2008-10-24 8:36:30 AM
Comment:
Hi,
its working man good idea
Title: Download link seems to be broken   
Name: Tinker
Date: 2008-10-22 8:48:15 AM
Comment:
The "[Download Sample]" link seems to be broken. It would be great if it could be repaired. I'd like to see this in action.

- Tinker
Title: how to insert images WITHOUT keeping the image online   
Name: Peter
Date: 2008-10-03 4:45:18 AM
Comment:
Hi, can you please send me the code for adding the images?
Is the image added to the document and not just linked to internet then? because i have temporary charts, they will not be kept on the server.
peter_derwa@msn.com
Thanks allot for your great work!
Title: Insert Image in Word Document   
Name: RS
Date: 2008-09-05 10:50:14 AM
Comment:
Please can anyone send mw the code to add images from server in Word document? Looks like lot of people needed it. If anyone has it can you email me at roochu@hotmail.com
Thanks lot
Title: Asp.NEt in vb   
Name: Monica
Date: 2008-08-19 1:14:01 AM
Comment:
Hi, Can I please get this code in .vb to my email address whoami_100@yahoo.com?

Thank you!
Monica
Title: ASP.net in VB dynamically generate the file   
Name: Sheetal
Date: 2008-08-18 11:12:47 AM
Comment:
Is it possible to get this code in Default.aspx.vb?

Thanks
Sheetal
Title: How to Insert Image   
Name: Sakthi
Date: 2008-08-01 7:56:24 AM
Comment:
Hi Vishal ,

Please send me the code to insert image . I need it very urgently.


My Email: sakthisundar@gmail.com

Thanks
Sakthi.
Title: How to Insert Image   
Name: Prabhu
Date: 2008-06-30 4:03:57 AM
Comment:
Hi Vishal ,

Please send me the code to insert image . I need it very urgently.

My Email: prabhuaashikan@yahoo.com
Thanks

Prabhu
Title: Not work fine in office 2003   
Name: Joseph Louis
Date: 2008-05-28 6:35:30 AM
Comment:
Ur article is very nice. it's very helpful for me.
But when i try to open my word in office 2003. its not working.
Thanking you
Title: Insert images in word doc   
Name: Reddy
Date: 2008-05-27 1:20:43 AM
Comment:
Please send me the Code to insert images in word document.

Email:reddynit@yahoo.co.in
Title: Insert Images in word doc   
Name: Mamta
Date: 2008-04-28 8:58:50 AM
Comment:
Please send me the Code to insert images in word document at mmalkar@intrack.com Or mamtamalkar@gmail.com
Title: Image Insert   
Name: Pankaj
Date: 2008-04-16 2:46:24 AM
Comment:
Hi Vishal ,

Please send me the code to insert image . I need it very urgently.

My Email: pankajbajaj_2003@yahoo.co.in

Thanks

Pankaj
Title: Dynamic Generation of Word Document Report in ASP.NET with HTML   
Name: Sriram
Date: 2008-04-08 6:36:42 PM
Comment:
Hi i need u r help... can u tell me how to save this document on the web server and also i need to insert certain images.. will the IMG tag workout?.. and is there a way i can generate a table of contents as i do in word with VBA macros?

Please send me the details to sriramkrish85@gmail.com,sriramkrish85@hotmail.com,sriramkrish85@yahoo.co.in

i need them urgently please
Title: Insert image   
Name: pankaj bajaj
Date: 2008-04-07 7:55:27 AM
Comment:
Hi ,

How to insert image. please send me the at my email id :

pankajbajaj_2003@yahoo.co.in

if there is option to hide grid lines then that code also be send .
Title: How can I save the document   
Name: Carmit
Date: 2008-04-07 5:50:28 AM
Comment:
Hello, and thanks for all the code,
I wanted to know how can I save the word document to the server without download it to the user and without opening it.
I mean that after the user click'Generate document', the file will be saved in the host server.
Please send me answers to: cmt_fst@hotmail.com

Thanks,
Carmit.
Title: Great .....   
Name: Harish
Date: 2008-03-21 10:57:27 PM
Comment:
Hi,You have given a very simple and effective example of reporting for newbies....keep up the great work,
Thanks
Title: Inserting Footer into a word document   
Name: hnguyen
Date: 2008-03-12 8:04:26 PM
Comment:
Hi, this example is helpful for my website. But, when I insert text and page number to the footer, it also puts them into the body at the end of the last page. Is there a way to solve this? or is there any better way to insert text and page number in the footer without display them in the body of the word document?
Please send the code to my email: hnguyen222@yahoo.com
Thanks alot!
Title: I want to save word file directly to folder.   
Name: sdubbewar@yahoo.co.in
Date: 2008-02-20 8:25:06 AM
Comment:
without saying dialog save,open ,save directly in folder.
I want to save word file directly to folder.
if u have solution mail me on sdubbewar@yahoo.co.in
Title: inserting "Page Break","Header" and "Footer"   
Name: Rintu Mitra
Date: 2008-02-19 3:38:25 AM
Comment:
I want code for inserting "Page Break","Header" and "Footer" in ms word. my mailid is mitra.rintu@gmail.com
Title: Inserting images into word document   
Name: Rubens
Date: 2008-02-09 7:02:08 PM
Comment:
Can you please send me the code to insert an image into the word document?.

My email is rubensgnz@gmail.com

Thanks.
Title: how to insert page break, header, footer, and image?   
Name: susan
Date: 2008-01-25 9:49:02 AM
Comment:
this example is really help. but, can you show us how to insert page break, footer, header and image?thanks.
Title: Mr.   
Name: Santosh Kulkarni
Date: 2008-01-25 5:07:04 AM
Comment:
Hi,

Please send me the code to insert image & hide grid lines. At santosh_kulkarni74@yahoo.com

Thanks
Santosh Kulkarni
Title: word document with footer   
Name: Maheswari
Date: 2008-01-22 1:48:20 AM
Comment:
Can anybody help me by sending the source code for generating word document with footer(for page number)
MailId: maheswarir85@gmail.com
Thanks in advance
Title: Printer settings in ms word..   
Name: Parshi
Date: 2008-01-21 5:46:46 PM
Comment:
Please send me the code for inserting (images + text) and printer page Setup to landscape settings.. to BhaskaraOnWeb@yahoo.com
Title: THANKS..   
Name: ELLAN
Date: 2008-01-16 12:26:12 AM
Comment:
HI I GENERATE WORD DOCUMENT,,,, BUT PROBLEM IS
WHEN I CLICK GENERATE DOCUMENT... IT SHOWS WINDOW TO OPEN OR SAVE OR CANCEL... WHENE I CLICK SAVE THERE IS NO PROBLEM
BUT WHEN I CLIK OPEN IT IS OPENING IN SAMPE WEB PAGE...
I WANT OPEN IN NEW WORD PAD..IF POOSIBLE MAIL ME
iellankumaran@gmail.com
Title: Thanks   
Name: Surjit singh
Date: 2008-01-07 7:14:18 AM
Comment:
Hi vishal,
thank you very much for providing such a greate solutions.

Vishal can u please send me the code for inserting images and heaer footer in document.

my email id is leo.surjit@yahoo.co.in

Thank u
Title: formatting doc   
Name: lekshmi
Date: 2007-12-27 6:07:41 AM
Comment:
In 2003 its showing border .but its working fine 2007 version how i can remove the border .lekshmi@actsinfo.biz
Title: insert image in ms-word   
Name: prie
Date: 2007-12-19 7:24:34 AM
Comment:
HI, Could you please to send me sourcecode to insert image in ms-word. email: pri.supriyanto@gmail.com

thanks
Title: Inserting page break   
Name: khai
Date: 2007-12-05 2:42:39 AM
Comment:
Hi, has anyone found out how to insert the page-break?
Thanks!
Title: How Add image to word document?   
Name: Mohsen Memarian
Date: 2007-12-01 2:38:30 PM
Comment:
Hi,

Please send me the code to insert
image to the word document .

my email : mmemarian@yahoo.com

Thanks
Title: Border line   
Name: Annapoorani
Date: 2007-11-28 8:27:52 AM
Comment:
The word Document come with border if dont want means wat i have to do.. StringBuilder comes only in Visual studio 2005, If i want in Visual studio 2003, How we generate the Document.. Please bring some guidelines.. I am new to this work.. Waiting for ur reply..
Title: Help me to remove Grid Lines   
Name: SangeethaG
Date: 2007-11-28 6:58:48 AM
Comment:
Hi
It's really working good.
Can you help me how to remove the grid lines in the word document.
Title: Not wroking on safari   
Name: Deepesh Verma
Date: 2007-11-24 5:36:24 AM
Comment:
Hello,
I tried your code but on safari when I click on the button the file as saved as default.aspx.
How can we solve this problem.

Thanks,
Deepesh Verma
Title: how to create doc file using asp.net   
Name: arun
Date: 2007-11-20 6:18:20 AM
Comment:
dear friends....

can u plz send me code for create a word doc using asp.net
my mail id:arunkumart@bangalorerocks.in

thanks & regards
arun
Title: Insert images in word doc   
Name: Gunjan
Date: 2007-11-14 4:56:09 AM
Comment:
Hi,
Can you please send me the code to insert images in word.
My E-mail address is ggunjan_gupta@yahoo.co.in

Thanks & Regards,
Gunjan
Title: Helping the Dumb-Masses   
Name: Chris
Date: 2007-09-07 2:45:06 PM
Comment:
Please people ... use google. Let's not abuse this author any more.

Navneet, think about your question. You have search results, and you are dynamically generating a response in the form of a document ... just append the results to the string buffer.
Title: Problem regarding showing search results   
Name: Navneet
Date: 2007-09-07 2:17:49 AM
Comment:
first i must say this article helps a lot...bt prob is that i want to show search result in document hw can i do this...plz help me....if u hv code send it on nav_priyu@yahoo.co.in
Title: create pdf file from *.doc uploaded file when download that file   
Name: srinivasa reddy
Date: 2007-09-06 12:08:56 AM
Comment:
hi can u plz give me the idea of creating pdf file from msword file when it is uploaded to the server and saved as a pdf in the webserver
Title: Insert image in MS word   
Name: Prabhakar
Date: 2007-08-27 3:28:29 AM
Comment:
Its good article. Can you Plz send me how load image at particular location in ms word

mail me @ : jagtap_prabhakar@rediffmail.com
Title: Insert Page Breaks and placing image in page by giving locations   
Name: bharath
Date: 2007-08-07 2:39:23 AM
Comment:
If you can send me complete code to insert images in to word and also suggest me the method for inserting "Page Break","Header" and "Footer" in the word doc

send to,
gbharath650@gmail.com
Title: How to insert image   
Name: Asok
Date: 2007-07-25 7:12:26 AM
Comment:
Hi Vishal,
Nice work.
Could you please send me complete code to insert images in to word email : asokp@rediffmail.com
Title: How to insert image   
Name: Omar
Date: 2007-07-24 1:25:35 AM
Comment:
Hi Vishal,
Nice work.
If you can send me complete code to insert images in to word and also suggest me the method for inserting "Page Break","Header" and "Footer" in the word doc.

Thanks in advance

My email-ID is: sab.almamun@gmail.com
Title: Inserting an image   
Name: subi
Date: 2007-07-17 7:20:24 AM
Comment:
Can you tell me how to insert an image in word doc using asp.net
Title: inserting "Page Break","Header" and "Footer"   
Name: Jegan
Date: 2007-07-17 5:11:14 AM
Comment:
Please send me the code to insert images in to word and also suggest me the method for inserting "Page Break","Header" and "Footer" in the worl doc.

I would really appreciate it.

My email-ID is: jeganji@gmail.com
Title: Image in document   
Name: Ismael
Date: 2007-07-12 6:04:56 AM
Comment:
Hi,

can you tell me how to add an image to the word document.
e-mail: mapguide2007@gmail.com

Regards,
Ismaël
Title: Insert Page Breaks   
Name: Meghana
Date: 2007-07-12 5:06:10 AM
Comment:
Hi
Can u please tell me how to add page breaks in the document....Please let me know
My id: meghanamohite@yahoo.co.in

Regards,
Meghana
Title: Insert Page Breaks   
Name: Jason
Date: 2007-06-18 1:23:47 AM
Comment:
This is great. Extremely helpful for what I am doing.
Could you send me the code for inserting Page Breaks into the document? I have not been able to come across any articles that explain this.

Much appreciated
jasonm@smartsoftware.com.au
Title: How to save the document which is opened using server.mappath   
Name: prashanth
Date: 2007-06-07 1:12:30 AM
Comment:
Hi
Can anybody help me in saving a word document which is opened using server.mappath() method. It needs to be saved in same location after i did any modifications on the document. Later if i open the same document , it should be opened with the modified changes.
Please help me in doing this.
Thanks


Prashanth
prashanthkumar.n@tcs.com
Title: How to insert a image in .doc / rtf   
Name: Prem
Date: 2007-05-19 2:14:33 AM
Comment:
Hi Vishal,
Your code is working fine, but the images in Webpage are missing in Word Document. How to correct that. Please send some solutions.

Please help me...............
Title: Is there is a specific length for the data to be exported   
Name: Sheetal
Date: 2007-05-18 8:37:48 AM
Comment:
Is there a specific length fro the data to be exported . Means there is a limit on the length of the string which we can export
Title: Internet Explorer cannot download file from server.   
Name: Asim
Date: 2007-05-09 4:27:56 AM
Comment:
Internet Explorer cannot download file from server.
I wonder why it is happening but it only happens when I publish the website to the webserver. The code is working fine at other places of application.
Can you comment on it please.
Title: Another Page Break Request   
Name: CTaylor
Date: 2007-04-27 9:15:44 AM
Comment:
Vishal-if there is any, would you mind sending me (or posting a snippet of) some code that dynamically breaks the page inside of Word. I've tried the CSS directives to no avail--which may just be the fault of the developer:)
Thanks!
cT

ctaylor@nonimus.com
Title: How to insert image in a word / rtf file   
Name: AMIT
Date: 2007-04-26 5:58:24 AM
Comment:
Hi Vishal,

Could you please send me the source code to insert images to word /rtf file. My id is a.malik@tcs.com
Title: Page Breaks Problem   
Name: Obul
Date: 2007-04-05 10:08:11 AM
Comment:
Hai ,
How to solve the page breaks issue.mail me the source code to my id obulreddymca@gmail.com
Title: Insert Images   
Name: Acropolis
Date: 2007-03-31 3:10:01 AM
Comment:
The article is very simple and self-explanative.
But i need to add an image into the word file.
can u pls help me?Could you please send me the code to insert images in to a word doc file?
my email id is:amitabha_joy@yahoo.co.in
:nirmallyakoley@yahoo.com
Title: Insert Images   
Name: ALDEC
Date: 2007-03-28 2:05:15 AM
Comment:
my problem is when im saving the report without showing it, the image does not appear. can anyone help me?

pls email me @ mgabrayt@yahoogroups.com
Thanks!
Title: Nice Article   
Name: Ranjit
Date: 2007-02-23 5:19:07 AM
Comment:
The article is very simple and self-explanative.
But i need to add an image into the word file.
can u pls help me.
my id : ranjit0000@yahoo.co.in

thanks
Title: Insert Images   
Name: MY
Date: 2007-02-21 8:34:21 PM
Comment:
Hi,

Would you please send me the source code for insert images, header and footer.

Thanks very much!
MY
justpromos@comcast.net
Title: how to save the word document   
Name: parthibanand
Date: 2007-02-20 1:19:40 AM
Comment:
Hi,
How to save the word document in a fixed folder without prompting after the word document is prepared?
Title: Insert image into word document from table   
Name: towhid alam
Date: 2007-02-15 3:42:09 AM
Comment:
Please send me the code to insert image into word document from table via asp.net
Thanks
TN37013@YAHOO.COM
Title: Insert EMBEDDED image   
Name: filur
Date: 2007-02-10 1:52:24 PM
Comment:
I would also like to know how you are inserting images into your MS Word documents when generated as described.

Are the images then inserted as embedded images or are they simply put in a specific folder and then linked to?

urszuly dot laszlo at gmail dot com
Title: Insert image into Word   
Name: Sofya
Date: 2007-02-09 12:28:04 PM
Comment:
This is really good article. Can you please send me the code to insert image into Word document? Thanks!
e-mail: sofyaslavina@yahoo.com
Title: How to save   
Name: santhosh
Date: 2007-02-09 4:12:38 AM
Comment:
How to save the word document in a fixed folder without prompting after the word document is prepared?


Mail me
srssanthosh@gmail.com
Title: Portals Developer   
Name: John Gates
Date: 2007-02-09 4:06:10 AM
Comment:
Very good article - Like lots of other commentators above I would greatly like to have example code for inserting images. My email is john@clubmg.co.uk - if anybody could oblige.
Thanks
Title: insert images into word   
Name: Dan
Date: 2007-02-08 9:00:53 AM
Comment:
I would appreciate it if you could send me the code to insert images into word. My email is roleston@hotmail.com

Thanks,
Dan
Title: How can i embed an image   
Name: sreeja
Date: 2007-01-31 6:18:28 AM
Comment:
Hello i would like to embed an image into the word document i generate using the above method. The image is stored in the database.

My email id is sreejanair@web.de
Title: Can you insert images into Word?   
Name: Chris
Date: 2007-01-30 5:45:02 PM
Comment:
I would also like the code to insert images into the word document.

My email is chriskinman@cox.net

Thank You!
Title: can you conver the pdf format   
Name: karthick
Date: 2007-01-17 8:56:19 AM
Comment:
how to convert the .pdf format
Title: How to Insert Images   
Name: Vural
Date: 2007-01-16 7:01:55 AM
Comment:
Hi,
can you please send me the code to insert images in to word.
my mail address is vural_oezmen@web.de
Thanks & Regards,
VUral
Title: Header and footer   
Name: Binu
Date: 2007-01-15 12:47:54 AM
Comment:
Can u send me the code to insert header and footer to my maid id too..

Mail id is binu_lovesu@yahoo.co.in
Title: Word using HTML   
Name: Nicks
Date: 2007-01-11 5:40:06 PM
Comment:
Hey can you please send me the code for converting HTML into word documents using HTML/CSS,also how can you take care of page breaks , header ,footer and images

email ID : nikhilparchure@yahoo.com
nikhil_parchure@hotmail.com
Title: How to insert Image??   
Name: Asok
Date: 2007-01-10 11:15:46 PM
Comment:
Could you please send me the code to insert images in to a word doc file.
my mail id is asok79@gmail.com
Title: Inserting images in Word Permanently   
Name: Mrudula
Date: 2007-01-07 10:18:21 AM
Comment:
That will be a great help if you sned me how to insert images in the word using html.I did try using img tag, but when i'm manually deleting the images from the physical location, the images in the word documnet are not getting displayed.If you do have the code of how to permanently store images in word, please do send it to my mail id..Mrudula_yamini@yahoo.com
Title: Insert images?   
Name: jorgen
Date: 2007-01-05 6:51:27 AM
Comment:
Hi, can I please have the code to insert images?
my email is: jorgenjohansson88@hotmail.com
Title: Header and Footer   
Name: yc
Date: 2007-01-04 4:32:29 AM
Comment:
Can i have to code how to create the header, footer, and page number? My email is yicheng84@yahoo.com, thanx.
Title: Can you insert images?   
Name: Sunny
Date: 2006-12-30 8:00:26 PM
Comment:
Sir,
can you please send me the code to insert images in to a word doc file.
my mail address is qmhasan_6@yahoo.com

Thanks,
Sunny.
Title: New page   
Name: KKTRAXX
Date: 2006-12-29 12:28:01 PM
Comment:
Is it possible to go to the next page in te word doc?
Title: footer and Header on every page   
Name: Suraj
Date: 2006-12-19 7:29:11 AM
Comment:
I need the resulting document to have a footer and Header on every page. Can I generate a footer & header on every page another way???

Email-id: ghadge_suraj@yahoo.com
Title: insert "Page Break","Header", "Footer" and "Images"   
Name: Rakesh Roshan
Date: 2006-12-19 3:33:49 AM
Comment:
Hi,
Please send me the code to insert "Page Break","Header", "Footer" and "Images" in the word doc.
I would really appreciate it.

My Email Id is Rakesh.Roshan@otis.com

Best Regards,
Rakesh
Title: Header , footer and foot note   
Name: Arun
Date: 2006-12-14 2:29:54 AM
Comment:
Hi Buddy!

Can u please help me by sending the source code for generating word document with images, header, footer(page number), foot note etc. also can we use template.

Please drop your suggessions and source code in dush_man@rediffmail.com
thanks and regards
Arun
Title: header and footer   
Name: Charo
Date: 2006-12-11 4:22:27 AM
Comment:
can i also have the source code for header and footer ,please?
my mail: rosario.priego@gmail.com !!!
Title: header and footer   
Name: Rosario Priego
Date: 2006-12-11 3:34:02 AM
Comment:
Please send code to insert headers and footers to rosario.priego@eptisa.es. thank u
Title: header, footer, insert image   
Name: Alfred
Date: 2006-12-01 8:40:06 AM
Comment:
can i also have the source code for header and footer and also insert images?

email: sabishii85@hotmail.com
Title: Header, Footer, & Template   
Name: Gary
Date: 2006-11-29 3:42:20 PM
Comment:
Dear Vishal,
Nice techniques. As a few people have requested, could I please receive the sample source code for inserting the header and footer into the Word doc.

Thanks,
Gary
email: gary.m.lowe@usmc.mil
Title: insert image   
Name: angie
Date: 2006-11-29 9:48:42 AM
Comment:
Please send me the code to insert images. hensleyangie@gmail.com
Title: insert image   
Name: nazir
Date: 2006-11-28 11:31:39 PM
Comment:
please send me code to insert image in word
dannis_sg@hotmail.com

thanks
Title: Images, Headers and Footers   
Name: wrr
Date: 2006-11-28 5:02:36 PM
Comment:
Please send code to insert images, headers and footers to wrr72@"TAKETHISOUTSTOPSPAMBOTS"hotmail.com Thanks.
Title: How to make word document Readonly   
Name: Anandkumar
Date: 2006-11-25 5:10:38 AM
Comment:
How to make the word document readonly after saving by using the VB.NET
Title: Insert Images in MS Word   
Name: Sandeep
Date: 2006-11-23 7:00:28 AM
Comment:
How to insert images into the word document.
Can you send me the sourcecode to my email address: kumars.sandeep@hotmail.com

Thanks in advance.
Title: Can you predefine the path to export the file   
Name: jyuan
Date: 2006-11-22 11:49:35 AM
Comment:
Hi, Vishal: Can you set the path for file exporting? It will be great if I can do that. Thanks!
Title: Can i get Data value   
Name: faiz
Date: 2006-11-09 3:12:27 AM
Comment:
Can i get what i typed value in text box.
Title: Inserting Images   
Name: Viz
Date: 2006-11-08 4:53:29 PM
Comment:
OK. Send the code to me too for inserting images in a word doc.

Thxs.

jjviz@hotmail.com
Title: Can you insert images?   
Name: sarah56565
Date: 2006-11-03 12:05:18 PM
Comment:
could you also please send me the code for inserting images into a word doc, to trimbls@cps-k12.org
Title: Word doc with images   
Name: samson
Date: 2006-11-02 8:15:11 AM
Comment:
Hi, is it possible to insert images into the word document.
Can you send me the sourcecode to my email address samson@verbat.ae
Title: Inserting images   
Name: Irvin
Date: 2006-11-02 8:06:15 AM
Comment:
Hi, could you please send me the code for inserting images into a word doc. I'm using a web environment with ASP but i'm sure your code in .NET will enlighten me.

My email address is irvinhomem@hotmail.com
Title: How to insert images   
Name: Kavitha
Date: 2006-11-02 1:33:35 AM
Comment:
Hi,
can you please send me the code to insert images into the word document. My mail address is a_kavitha03@yahoo.co.in.
Title: Automatic saving of word document.   
Name: sathish
Date: 2006-10-27 9:47:55 AM
Comment:
Hi,
I have a requirement of opening a word document with some data in it from database and then when user clicks on 'save', the word document should be saved automatically to some predefined remote location( not on the local machine).
can you suggest me a solution.
Thanks in advance.

sathish.esk@gmail.com
Title: How to insert Image?   
Name: Lokesh
Date: 2006-10-25 2:24:27 AM
Comment:
Hi Vishal,
I would like to know how can i insert or embed an image(jpg, gif, and png) in a word document.
Can u please email it to me. lokeshraovl@gmail.com

Thanks in advance.
Lokesh
Title: want to insert images in header section [urgent]   
Name: Ravi
Date: 2006-10-23 11:38:39 PM
Comment:
I am generating a word document from HTML. i want to insert image in header section and page numbers in footer section. if anyone having the code then send it to this mail id as early as possible ravibabu_rali@rediffmail.com
Title: Insert Image to Word Document   
Name: Kath
Date: 2006-10-11 9:34:43 AM
Comment:
Hi,
can you please send me the code to insert images in to word.
my mail address is circuscomdex98@yahoo.com

Thanks & Regards,
Kath
Title: Can you insert images?   
Name: Sanjeev
Date: 2006-10-11 2:15:47 AM
Comment:
Please send me the Code snippet for inserting Images to this mail id spinnamaneni@csc.com
Title: Code to insert images   
Name: Julie
Date: 2006-10-09 4:11:41 PM
Comment:
Please send me the code for inserting images to julielbeltz@hotmail.com

Thanks!
Title: Can you insert images?   
Name: nav
Date: 2006-09-29 12:32:59 PM
Comment:
Hey Vishal ... great work... can you please send the image insertion c# code to the following email :

naveenraj_raj@yahoo.com

Thank you
naveen
Title: Can you insert Images?   
Name: Satya
Date: 2006-09-29 12:01:33 PM
Comment:
Hi,
can you please send me the code to insert images in to word.
my mail address is csatya09@yahoo.com

Thanks & Regards,
Satya
Title: want to insert images in header section [urgent]   
Name: Girish
Date: 2006-09-29 9:38:33 AM
Comment:
I am generating a word document from HTML. i want to insert image in header section and page numbers in footer section. if anyone having the code then send it to this mail id as early as possible girish_ok@yahoo.com
Title: Perfectly works   
Name: Girish
Date: 2006-09-29 9:35:23 AM
Comment:
Its good, i was doing R & D on dynically creating Word document from HTML Text. I gone through this article and want some more code how to insert images in word doc[ in header section] and Page numbers [ in footer section].

I want to render images in header section and page number in footer section. I am retrieving IMG from database and saving it in a directory from there i need to read the image and want to place in word doc as header and pagenumbers as footer. The image is not fixed, it will change based on login.?
Title: Code to insert images in a word document   
Name: Naveen
Date: 2006-09-29 8:20:32 AM
Comment:
Hi - Your article was extremely useful to me. Please send me the code to insert images into the word document. Is there a way to set headers and footers in the word document?

My email id is vijay_naveen@hotmail.com

Thanks.
Title: Images in word Document   
Name: shameem
Date: 2006-09-28 10:20:28 PM
Comment:
Hi,
can you please send me the code to insert images in to word.
my mail address is shamfat19@hotmail.com
Title: inserting images and page layout of word   
Name: shan
Date: 2006-09-24 4:29:47 AM
Comment:
can you please send me the code to insert images in to word also setting the page layout of word before printing to shanumathew@gmail.com
Title: Images   
Name: smorris
Date: 2006-09-21 2:41:52 PM
Comment:
Can I also get this image source sent to me at smorris@lumpsum.com?
Title: Can you insert images?   
Name: Steve
Date: 2006-09-19 5:18:34 PM
Comment:
Can I get a copy of that code as well? sjoemoe@hotmail.com

Much appreciated
Title: Insert Images into Doc   
Name: Lebza
Date: 2006-09-19 2:44:04 AM
Comment:
Hi,
can you please send me the code to insert images in to word.
my mail address is Lebza4Sure@webmail.co.za

Thanks & Regards,
Lebza
Title: Header & footer   
Name: Bikramjit
Date: 2006-09-19 2:32:31 AM
Comment:
Please send the code for inserting header and footer in the word document in the follwing e mail id

bikramjit_pal2003@yahoo.co.in
Title: Insert Image Into Word (.doc) document   
Name: Gurucharan
Date: 2006-09-13 1:27:54 AM
Comment:
Hi,
Can you please send me the code to insert images in to word.
my mail address is gurucharan.singh@espireinfo.com.

Thanks & Regards,
Gurucharan
Title: Can you insert image?   
Name: Tim
Date: 2006-08-30 8:19:06 AM
Comment:
Can you please send me the source code for inserting image into the word document:

twoot22@yahoo.com
Title: Insert Images?   
Name: Huzefa Shabbir
Date: 2006-08-25 7:26:01 AM
Comment:
hey, plz let me know how to insert images into the word document?.

plz let me know on huzefa.shabbir@gmail.com
Title: Dynamic Table of Contents   
Name: Anoop
Date: 2006-08-24 5:43:09 PM
Comment:
Hello. I came across your coding and it matches a bit with what I want to do. I don't know if you can help me out with it. Well here is my case: I have a document of several pages in the doc format. I want to be able to dynamically regenerate this table of contents from an asp.net application. The document will be loaded in the browser and the user can add a new heading. When saving the document, the new heading should be added to the TOC. Can you help me out with this please? Thanks in advance for a reply.
sk8terboi_xtreme@yahoo.com
Title: Source Code for inserting image in Word Document   
Name: Evon
Date: 2006-08-21 9:39:48 PM
Comment:
Hi,

Can you please send me the source code for inserting image into the word document.

zhaoyuhang1977@hotmail.com

Thank you very much.
Title: how to insert images   
Name: velio
Date: 2006-08-20 4:06:54 AM
Comment:
Hi there,

Can you please send me the code to insert images to the next address: velio.ivanov@gmail.com

Thanks in advance.
Title: Great article! Tip for using special characters...   
Name: Fedor Steeman
Date: 2006-08-14 7:41:16 AM
Comment:
Thank you for a great article I have gratefully been using for my web application. Initially, however, I had some problems with special characters (like 'ø' (o-slash)) being mauled. I finally solved this by with the following code, adding a encoding header to the http-response:

HttpContext.Current.Response.ContentEncoding = System.Text.Encoding.GetEncoding("iso-8859-1");
Title: Can You Send me Image Insertion Code?   
Name: Pawan
Date: 2006-08-10 7:54:05 AM
Comment:
Vishal,

I have read your article it is very good.

Please send me the code to insert image in the word document at pawan.singhals@gmail.com

Thanks
Pawan
Title: How to Insert Images to Word   
Name: Anup
Date: 2006-08-07 6:55:40 AM
Comment:
Hi,
can you please send me the code to insert images in to word.
my mail address is ntuyen01@yahoo.com

Thanks & Regards,
Anup Singh
Title: Excellent Alternative to Word on the Server   
Name: dani0010
Date: 2006-07-31 4:52:20 PM
Comment:
Combining this with the css page-break directives, this is an excellent way to generate data-merged letters, etc. In fact, of everything I investigated, including using the Office primary interop assemblies and transforming xml to RTF, this solution was the simplest, most versatile and most efficient. Thanks!
Title: Insert Image Into Word (.doc) document   
Name: Deep
Date: 2006-07-29 1:51:44 AM
Comment:
Hello Sir,
Please send me the code to insert images in to word and also suggest me the method for inserting "Page Break","Header" and "Footer" in the worl doc.I would really appreciate it.

My email-ID is: imavailableforu2006@yahoo.co.in

Thankyou
Title: Insert Image Into Word (.doc) document   
Name: Deep
Date: 2006-07-29 1:21:08 AM
Comment:
Hi Sir,
Please send me the code to insert images in to word and also suggest me the method for inserting "Page Break","Header" and "Footer" in the worl doc.I would really appreciate it.

My email-ID is: pksri06@yahoo.co.in

Thankyou
Title: Can you insert images?   
Name: Craig
Date: 2006-07-21 10:21:17 AM
Comment:
Hi,

Please could you send me the code to insert images into word?

My address is swats999@hotmail.com

Thanks,

Craig
Title: Image Insert   
Name: Nedums
Date: 2006-07-19 11:06:57 PM
Comment:
Could yoiu please mail the code to me as well
to nedums_b@yahoo.com

Thanks
Title: inserting images   
Name: Hanna
Date: 2006-07-14 4:18:47 PM
Comment:
Can you send me the code to insert images into Word document? My e-mail address is hania@alta.pl
Title: Insert Image   
Name: Carlos
Date: 2006-07-10 11:15:45 AM
Comment:
Would anyone send me the code to insert images into DOC?

camlopes@facensa.com.br
Title: Code to insert image from a webpage to a word document   
Name: Subhash Shetty
Date: 2006-07-10 2:18:31 AM
Comment:
Hi Vishal,

I need to copy certain fragments(text,graphics,tables) from a intranet webpage to a word doc template,using a stand alone windows app.
I am using a web browser control to get the html of the web page.
can you pls help.
shettysubhashs@hotmail.com
Title: read only word file   
Name: dot net
Date: 2006-07-05 11:30:33 AM
Comment:
Is there a way to save or open this word file as read only? don't want user to edit word file
Title: Same Code in VB.net   
Name: Meena
Date: 2006-07-05 1:19:34 AM
Comment:
Can you please send me vb.net code or tell me the way to convert it.

callmgnt@ibsindia.org

regards
Meena
Title: Automatic Save   
Name: Ryan
Date: 2006-07-03 2:27:59 PM
Comment:
I've seen some people asking this already, wasn't sure if a response was being given through email or what the deal was there. If someone could give me some guidance on how to save the file to a predefined location without the d/load prompt, I would really appreciate it. ryan.boyll@gmail.com
Title: How to insert images   
Name: Mita
Date: 2006-07-03 4:15:18 AM
Comment:
Hi,
Can you please send me the code to insert images in to word.
my mail address is mita_j99@yahoo.se
Title: inserting images   
Name: samudra
Date: 2006-06-30 1:22:02 PM
Comment:
hello..can anyone mail me the code to insert images in the doc file..also does this code work to generate more than a page of report ?
my id is bayofbengal@gmail.com
Title: Can you insert images?   
Name: Dee
Date: 2006-06-30 7:42:27 AM
Comment:
Hi,
can you please send me the code to insert images in to word.
my mail address is deepika0@gmail.com

Thanks
Title: images   
Name: stevenb
Date: 2006-06-27 5:41:16 AM
Comment:
I can put images in the Word doc, but they aren't visible by remote connection. That's obvious, cuz i use the server.mappath. Do i need to use the http://domain or is there another way?
Title: how to insert images   
Name: Uffe
Date: 2006-06-26 10:44:55 AM
Comment:
Hi,
Can you please send me the code to insert images in to word.
my mail address is flu_59@yahoo.com

Thanks
Title: Can you set the margins, insert page breaks and set pring to landscape?   
Name: Bob
Date: 2006-06-23 1:12:54 PM
Comment:
The code works great to generate a report and send it to a Word document. I was wondering if anyone has found a way to set the page layout, insert page breaks, and set the print to landscape via the ASP .Net application?
Title: Images   
Name: Riaz
Date: 2006-06-23 1:06:33 PM
Comment:
Could you please also send me the code to insert an image into the word doc.
rakd@hotmail.com
Thanks
Title: Which version of MsWord should be installed.I have generated the doc just button only displat   
Name: DIVYA.S
Date: 2006-06-16 10:06:46 PM
Comment:
Very superb coding
Title: Can you insert images?   
Name: jalberca
Date: 2006-06-15 12:31:49 AM
Comment:
Hi, could you send the code to
insert image into word to me?

My email address is jalberca@osmos.com

thks
Title: Image insert   
Name: Alex
Date: 2006-06-07 7:32:04 PM
Comment:
Hi,
Would you please send me the code to insert images into the word document?

My e-mail address is alexb_67@yahoo.com

Thanks
Title: HEADER & Footer   
Name: Kalyan
Date: 2006-06-07 9:41:48 AM
Comment:
Hi
Is it possible to add header & footer in a generated document
If so please send me the code to my EMail - ID. My Email ID is

sundhar19@yahoo.com
Title: Source code for Insert Image into document   
Name: Ted Lee
Date: 2006-05-25 5:32:07 PM
Comment:
Would you please send me the source code too.
ntuyen01@yahoo.com
Thanks


Title: Re: Can you insert images?
Name: Vishal
Date: 4/24/2006 2:20:18 AM
Comment:
You can insert Images in the Word doc.
Comments box is not allowing to put Source code.Please let me know your Mail Id so that I can send you the complete Source code.
Title: Can you insert images?   
Name: Joe
Date: 2006-05-24 11:43:44 AM
Comment:
Hi, could u send the code to
insert image into word to me.?

mail ID is profjf@hotmail.com

thks:)
Title: Inserting images into word document   
Name: Tania
Date: 2006-05-23 4:23:24 PM
Comment:
Vishal,

I am sure you are tired of mailing this, but if you could also email me the source code on how to do this, I would really appreciate it.

My id is tsahai@prtm.com

Thanks!
Title: kaustubh   
Name: kaustubh
Date: 2006-05-20 4:32:16 AM
Comment:
Hi,
can you please send me the code to insert images in to word.
my mail address is kaustubh_gangan@sify.com

Thanks
Title: Footer   
Name: rmorelli
Date: 2006-05-18 12:43:21 PM
Comment:
I need the resulting document to have a footer on every page. Can I incorporate a Word template? Can I generate a footer on every page another way??? Thanks for any insight -> rmorelli@att.com.
Title: Source Location and multiple files   
Name: Peter Ting
Date: 2006-05-15 9:15:48 PM
Comment:
Dear Vishal,

I would like to know if there is a way to save the file automatically in a certain directory without the PROMPT. Also, most importantly, I would like to know if there is a way to do multiple files. I have a list of itens (from a database) which I would like to have the option to choose which itens should be saved as word files.

My email is peter@pting.com
Title: Images in Word document   
Name: Venkatesh
Date: 2006-05-15 8:06:23 AM
Comment:
I have a web page which is having a repeater control which in turn has an image control. Im stting the ImageURL property of image control during run time in ItemDatabound event of repeater control as the image is retrieved from sql server. Im setting the height & width property during runtime. Im seeing the image in word document with original dimensions. I need word document to have the image in same dimension as I can see in web page. Can anyone help?.
Is there a better way to export the contents of a web page to word document.
Please reply at venk1575@yahoo.com.
Title: Insert Image Into Word (.doc) document   
Name: Pete
Date: 2006-05-12 1:57:42 AM
Comment:
Please send me too the code to insert images in to word.
Or better publish it on this web page
dak565656@yahoo.com
Title: Insert Image Into Word (.doc) document   
Name: Ted Lee
Date: 2006-05-09 12:00:41 PM
Comment:
Hi,
can you please send me the code to insert images in to word.
my mail address is ntuyen01@yahoo.com

Thanks & Regards,
Ted Lee
Title: Saving word doc at defined location   
Name: Madhavi
Date: 2006-05-05 11:41:09 AM
Comment:
Hi

How to save the word doc at defined location without asking user to select the pathe for saving the created file?

Madhavi
reach_nmadhu@yahoo.com
Title: Can you insert images?   
Name: siva
Date: 2006-05-02 8:22:16 PM
Comment:
Hi,
can you please send me the code to insert images in to word.
my mail address is sivaganesh_movva@yahoo.com

Thanks & Regards,
Siva
Title: how to save the word document?   
Name: Kalyan
Date: 2006-04-29 9:51:31 PM
Comment:
Hi,
How to save the word document in a fixed folder without prompting after the word document is prepared?

Thanks
Title: Can you insert images?   
Name: Edwin
Date: 2006-04-27 12:27:35 AM
Comment:
Hi, could u send the code to
insert image into word to me.?

mail ID is hijacker9173@yahoo.com

thks
Title: Re:Works with MS Visual Studio .net 2003?   
Name: Vishal
Date: 2006-04-27 12:07:24 AM
Comment:
This code will run with Visual Studio 2003 also. Just paste Listing 2 code in some button click event and run it.
Title: Headers and Footers   
Name: bds
Date: 2006-04-25 11:40:49 AM
Comment:
Is there a way to insert headers and footers? Mainly I want to see "Page 1 of n" etc...
Title: Works with MS Visual Studio .net 2003?   
Name: Jim
Date: 2006-04-25 10:56:22 AM
Comment:
This code works fine when I re-write it from C# to VB.net for my application. However, the table renders in my browser and not to the Word doc. I could not use:

"using System.Web.UI.WebControls.WebParts;"

as it must not exist in the 2003 environment. Is there a replacement for this for 2003?

Thanks,
Jim
Title: how to insert images   
Name: arjun
Date: 2006-04-25 12:11:30 AM
Comment:
Hi,
can you please send me the code to insert images in to word.
my mail address is arjun01483@yahoo.com

Thanks
Title: Re: Can you insert images?   
Name: Vishal
Date: 2006-04-24 2:20:18 AM
Comment:
You can insert Images in the Word doc.
Comments box is not allowing to put Source code.Please let me know your Mail Id so that I can send you the complete Source code.
Title: Can you insert images?   
Name: cardona
Date: 2006-04-06 8:55:47 PM
Comment:
How do you insert an image into the word document?

Product Spotlight
Product Spotlight 





Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2024 ASPAlliance.com  |  Page Processed at 2024-03-29 4:54:34 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search