How do I print out a 2 column list form my database on to 51/4 X 31/2 post cards

Posted on 2012-09-17
Last Modified: 2012-10-03
I have a list of street addresses and would like to print them out onto post cards in 2 columns.  The issue is that only so many house number fit on a card. And each set of number has to have a heading, that gives the street of the list of house numbers. Example below.


Park Avenue and 41ed
4140      4141
4142      4143
4144      4145

Oakland and 41ed
4140      4141
4142      4143
4144      4145

How would I be able to print the numbers out from the db and display them on the page using css. And fit my constraints of 4 card per page and each card displays the two columns and street address  I’m doing this using ASP.NET C#.

Trying to figure out where to start with this.

Thanks for your help.
Question by:bmanmike39
    1 Comment
    LVL 53

    Accepted Solution

    It is tabular data so just use HTML tables:

       <caption>Park Avenue and 41ed</caption>
       <tr> <td>4140</td><td>4141</td></tr>
       <tr> <td>4142</td><td>4143</td></tr>
       <tr> <td>4144</td><td>4145</td></tr>

    Put each table in a div and apply CSS height, width and margins and then float them
    to get the layout you want.

    As for printing them to post cards, lot's of luck with that.  You should be using a pdf or an app suited to pre-formatted printing.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Suggested Solutions

    Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
    International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
    In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
    In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now