Export datagrid to Word, force page break

Discussion in 'ASP .Net' started by =?Utf-8?B?RXJpayBLLiBTY2hpbmRlbGRlY2tlcg==?=, Oct 3, 2006.

  1. Good Afternoon,

    I am exporting a series of datagrids to Microsoft Word, and cannot figure
    out how to force a page break between each datagrid. Does anyone know of a
    character or command I could use with Response.Write to force a page break
    between the datagrids?

    Thank you,
    Erik
     
    =?Utf-8?B?RXJpayBLLiBTY2hpbmRlbGRlY2tlcg==?=, Oct 3, 2006
    #1
    1. Advertising

  2. Try using these lines:

    <h2 style='page-break-before: always;'>&nbsp;</h2>
    <P style='page-break-before: always;'>&nbsp;</P>

    --
    I hope this helps,
    Steve C. Orr
    MCSD, MVP, CSM
    http://SteveOrr.net


    "Erik K. Schindeldecker" <Erik K. >
    wrote in message news:...
    > Good Afternoon,
    >
    > I am exporting a series of datagrids to Microsoft Word, and cannot figure
    > out how to force a page break between each datagrid. Does anyone know of
    > a
    > character or command I could use with Response.Write to force a page break
    > between the datagrids?
    >
    > Thank you,
    > Erik
     
    Steve C. Orr [MVP, MCSD], Oct 3, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. John A Grandy

    force line break inside .InnerText

    John A Grandy, Oct 17, 2003, in forum: ASP .Net
    Replies:
    3
    Views:
    6,969
    John A Grandy
    Oct 17, 2003
  2. CRON
    Replies:
    10
    Views:
    20,978
  3. Steve
    Replies:
    6
    Views:
    669
    Eric Layman
    Mar 3, 2007
  4. Replies:
    12
    Views:
    988
  5. Replies:
    1
    Views:
    1,523
    Steve C. Orr [MCSD, MVP, CSM, ASP Insider]
    Jul 2, 2008
Loading...

Share This Page