Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 337
  • Last Modified:

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

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.
1 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.


Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now