Connecting Tech Pros Worldwide Help | Site Map

Pagination

  #1  
Old October 3rd, 2008, 02:45 PM
GLSmyth
Guest
 
Posts: n/a
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

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

re: Pagination


Thank you for the information, it was helpful.

Cheers -

george
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pagination - First page works great, next pages are blank ArizonaJohn answers 4 May 28th, 2009 07:41 AM
Help on pagination please gnawz answers 16 October 10th, 2008 06:41 PM
pagination using XSL shalini jain answers 1 July 16th, 2007 10:46 PM
Gallery Pagination Result Problem ste answers 11 May 11th, 2006 02:15 AM
Pagination Problem Chris H answers 2 March 25th, 2006 05:35 AM