Forum Moderators: open
I read the major topics about printing html pages and i decided that the only way of doing it right is to combine HTML and WORD.
what i want to do is to create a word document that will have the page layout that i want but no body text.
when i will click on "print" link from my HTML document, it will open the WORD file that i have created but with the text from my HTML page.
does anybody know how to transfer data from HTML to WORD ?
Thanx!
Morrison.
The most correct way to do that would be to convert the document to latex with html2latex, or better go the whole way and convert it to postscript, html2ps.
If you are on a 'nix server both are easily available.
Your client will need to be able to print postscript, of course; I think that Acrobat doesn't handle ps. There are some apps that do, but the client surely doesn't have them :)
As for the original question, at least on linux no html2word exists.
\usepackage[latin1]{inputenc}
\topmargin=10.mm
\oddsidemargin=0.mm
\evensidemargin=0.mm
\begin{document}
\begin{abstract}
Put your abstract here
\end{abstract}
Text here. {\bf bold text}.
\end{document}
but using it as a backend you don't have to worry about coding because it is all done on the server. Once compiled, it becomes a printer native format know as postscript, and is a pretty good way to print making sure that the layout is preserved.
But, as I said, surely the clients have not set a mime type to manage postscript.
Postscript is what you get when you tell the browser to "print as a file".
Take a look at this. [sourceforge.net...]
I found half of the answer to my question and it's:
<%
Response.ContentType = "application/msword"
%>
this will make the page a WORD document, instead of HTML document.
now, the other half that i couldn't find is:
how to "load" an exiting word document with the layout (i want each page to have a frame), and make the html text add in the document body.
thanx.
Morrison.