Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old October 3rd, 2008, 02:45 PM
GLSmyth
Guest
 
Posts: n/a
Default Pagination

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.

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 -

george
  #2  
Old October 3rd, 2008, 03:05 PM
Bob Barrows [MVP]
Guest
 
Posts: n/a
Default Re: Pagination

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"


  #3  
Old October 3rd, 2008, 03:25 PM
GLSmyth
Guest
 
Posts: n/a
Default Re: Pagination

Thank you for the information, it was helpful.

Cheers -

george
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles