-
Opening a Word document in the browser (6 messages)
- Posted by: Shubhangi Patil
- Posted on: May 07 2001 01:22 EDT
hi
i have to write a servlet ,which will write a report to a word document.
the data is raw ,and is to be printed in a table format on the word document.
can anyone please tell ,me how to go about it ?if there are any APIs already available ,to open/create a new ,word document and modify it.
so that this word document can be shown on the browser.
thanks in advance
ShubhangiThreaded Messages (6)
- Opening a Word document in the browser by Klaas van der Ploeg on May 07 2001 04:52 EDT
- Opening a Word document in the browser by Shubhangi Patil on May 07 2001 05:17 EDT
-
Opening a Word document in the browser by Klaas van der Ploeg on May 07 2001 05:52 EDT
-
Opening a Word document in the browser by Shubhangi Patil on May 10 2001 01:46 EDT
-
How to write a string to Word Document by sush s on May 25 2007 02:14 EDT
- How to write a string to Word Document by laxman yamsani on September 06 2011 02:29 EDT
-
How to write a string to Word Document by sush s on May 25 2007 02:14 EDT
-
Opening a Word document in the browser by Shubhangi Patil on May 10 2001 01:46 EDT
-
Opening a Word document in the browser by Klaas van der Ploeg on May 07 2001 05:52 EDT
- Opening a Word document in the browser by Shubhangi Patil on May 07 2001 05:17 EDT
-
Opening a Word document in the browser[ Go to top ]
- Posted by: Klaas van der Ploeg
- Posted on: May 07 2001 04:52 EDT
- in response to Shubhangi Patil
If you set the Content-type to 'application/msword' a browser will recognize your page as a word document, so word will be started with your document (if it's registered correctly on the pc). Then you only have to take care of the contents. You can use HTML or RTF or some other document format to do the contents.
Rgrds,
Klaas -
Opening a Word document in the browser[ Go to top ]
- Posted by: Shubhangi Patil
- Posted on: May 07 2001 05:17 EDT
- in response to Klaas van der Ploeg
Thanks Klaas
but that is precisely where ,i am stuck up.
setting the Content-type to 'application/msword' ,i am able to read a word document and wirte a string array ,or byte array.
but i have to display a table ,full of contents in it ,and also while doing so ,i have to set the foreground color ,background color ,font etc....that to ,all this in a .doc file.
if u have ritten something about RTF.it will be very nice if u tell me in more details ,how to go about it
Shubhangi
-
Opening a Word document in the browser[ Go to top ]
- Posted by: Klaas van der Ploeg
- Posted on: May 07 2001 05:52 EDT
- in response to Shubhangi Patil
You could start by just saving a sample document as .rtf and open it in a text editor.
Take a look at M$'s RTF Specification: http://msdn.microsoft.com/library/specs/rtfspec.htm
This is a hello world example:
{\rtf1\ansi
{\fonttbl
{\f0\froman Times New Roman;}
}
\pard
\plain\f0
{\i Hello}{\b World}!
\par
}
Rgrds,
Klaas
-
Opening a Word document in the browser[ Go to top ]
- Posted by: Shubhangi Patil
- Posted on: May 10 2001 01:46 EDT
- in response to Klaas van der Ploeg
Hi Klass
Thanks for this link ,i am going through it .
Presently i am able to write a string on the word document ,but i need to draw table on it .do if u could please tell me how to go about it ?
Thanks
Shubhangi -
How to write a string to Word Document[ Go to top ]
- Posted by: sush s
- Posted on: May 25 2007 02:14 EDT
- in response to Shubhangi Patil
Hi Shubhangi.. how u write string to a word document.. past days im trying for that only.. i can read WordFile contents using POI API.. if u can pls send the code to write a string to Word Document... thanx in advance neha -
How to write a string to Word Document[ Go to top ]
- Posted by: laxman yamsani
- Posted on: September 06 2011 14:29 EDT
- in response to sush s
Hi sush s,
Please can you tell me how to display the word file data in browser, no priority to show the html formats like background color,fore color, tables ... etc, please give me the solution, it is very very very urgent and so important for me........
Thanks
Laxman