GLSmyth wrote:
Quote:
I have written a program to get information from the database, and
including 'Response.ContentType = "application/vnd.ms-word"' in the
document, open Word and insert the contents into the document.
No, that's not what happens. What happens is that you write your data to
Response as html. When the browser processes the html, it notes the header
and handles it according to the way the browser is configured. In many
cases, yes, that means the html is displayed in Word when that ContentType
is used.
Quote:
>
I would like to include a form feed so that the report is two pages,
but have not been able to figure out how to do this (or even if it can
be done).
>
If anyone knows if this can be done and what I need to pass to the
document to do it, I would appreciate knowing.
>
Cheers -
>
Create a document in Word. Insert a page break. Save it as html. View its
source to see what the html needs to look like.
--
Microsoft MVP - ASP/ASP.NET - 2004-2007
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"