printing a datagrid

Discussion in 'ASP .Net' started by bill, Mar 4, 2005.

  1. bill

    bill Guest

    I have a web form with datagrids.

    I would like users to be able to print the page and control the location of
    the page break somehow, so text doesn't get divided between two pages.

    Has anyone already thought of good ways to format a web forms page for
    printing? Can I get it to print landscape?

    Thanks
    Bill
     
    bill, Mar 4, 2005
    #1
    1. Advertising

  2. bill

    Riki Guest

    bill wrote:
    > I have a web form with datagrids.
    >
    > I would like users to be able to print the page and control the
    > location of the page break somehow, so text doesn't get divided
    > between two pages.


    Insert this tag to get a page break:
    <p style="page-break-before: always">

    You could create some code to insert it dynamically either on
    the server or on the client with javascript.

    > Has anyone already thought of good ways to format a web forms page for
    > printing? Can I get it to print landscape?


    The @page css rule is supposed to control that, but it's not
    supported by many browsers:
    http://www.w3.org/TR/REC-CSS2/page.html

    > Thanks
    > Bill


    Here's an interesting article:
    http://www.codeproject.com/html/printingwithstyle.asp

    --

    Riki
     
    Riki, Mar 4, 2005
    #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. Jon B
    Replies:
    7
    Views:
    7,612
    =?Utf-8?B?SmFzb25DaG9p?=
    Jan 30, 2006
  2. JustSomeGuy
    Replies:
    13
    Views:
    528
    msalters
    Dec 9, 2004
  3. iffy agbim
    Replies:
    1
    Views:
    131
    Mark Andrews
    May 24, 2004
  4. iffy agbim
    Replies:
    0
    Views:
    132
    iffy agbim
    May 21, 2004
Loading...

Share This Page