SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Addict suzkaw's Avatar
    Join Date
    Apr 2002
    Location
    North Carolina
    Posts
    338
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Best way to handle printing to Avery labels

    I am trying to create a popup page to print little cards to Avery labels. I can get the page to work out but it always prints the margins to far over so it doesn't fit in the cells. I was wondering if any one new any resources to give details on how to accomplish this or of another method?

    I have also tried creating a dynamic word doc but then the user could change the text values which wouldn't work.
    Thanks Eric.

  2. #2
    SitePoint Zealot Sriram_anp's Avatar
    Join Date
    Oct 2004
    Location
    los angeles
    Posts
    116
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi, I'm interested in this,too. Please update this thread if you find some good info elsewhere as well.

    Thanks in advance

    Sri

  3. #3
    Original Gangster silver trophy Thing's Avatar
    Join Date
    Oct 2000
    Location
    Philadelphia, PA
    Posts
    4,708
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Can you use a style sheet to adjust the margins to fit the label?

  4. #4
    SitePoint Addict suzkaw's Avatar
    Join Date
    Apr 2002
    Location
    North Carolina
    Posts
    338
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have tried but couldn't get it to work using those either. Here is the code from the page incase you might see anything that would cause this:

    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    
    <head>
    <meta http-equiv="Content-Language" content="en-us">
    
    <TITLE>Couture Bridal - Your source for all things BRIDAL!</TITLE>
    <style type="text/css">
    <!--
    body {
    	background: white;
    	margin: 0px;
    	}
    @page mylandscape {
    	size: 11in 8.5in;
    	margin: 0px;
    	marks: crop;
            margin-top:1.7cm;
            margin-bottom:1.4cm;
            margin-left:2cm;
            margin-right:2cm
    }
    div.overhead{
    	page: mylandscape;
    	page-break-after: avoid;
    }
    table.main{
    	width: 4in;
    	height: 2in;
    }
    h1 { font-family: Viner Hand ITC; font-size: 14pt; color: #660033}
    td{ font-size: 12px;
    	font-family: arial;
    }
    P {
    	font-size: 12px;
    	font-family: Verdana, Helvetica, Arial;
    	color:660033;
    }
    
    td > p {
    	font-size: 12px;
    	font-family: Verdana, Helvetica, Arial;
    	color:660033;
    }
    .name{
    	font-size: 13px;
    	font-family: Verdana, Helvetica, Arial;
    	color: #660033;
    	font-weight: bold;
    	text-decoration: underline;
    }
    -->
    </style>
    </head>
    
    <body>
    
    <div class="overhead">
    <table width="100%" cellpadding="0" cellspacing="0">
    
    	<tr>
    		<td>
    <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" class="main" id="card">
      <tr>
        <td width="100%" align="center">
        <h1>Couture Bridal</h1>
        <i>is pleased to have registered</i><br>
        <p><div class="name">Eric&nbsp;Barnes and Shannon&nbsp;Parker</div></p>
    
        To purchase a gift please visit:<br>
        <b>Couture-Bridal</b><br>
        wwww.couture-bridal.com
        </td>
      </tr>
    </table>
    
    		</td>
    		<td>
    
    <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" class="main" id="card">
      <tr>
        <td width="100%" align="center">
        <h1>Couture Bridal</h1>
        <i>is pleased to have registered</i><br>
        <p><div class="name">Eric&nbsp;Barnes and Shannon&nbsp;Parker</div></p>
    
        To purchase a gift please visit:<br>
        <b>Couture-Bridal</b><br>
        wwww.couture-bridal.com
        </td>
      </tr>
    </table>
    		
    		</td>
    	</tr>
    </table>
    
    </div>
    
    </body>
    </html>
    Thanks Eric.

  5. #5
    SitePoint Enthusiast
    Join Date
    Aug 2004
    Location
    Manchester
    Posts
    44
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I wanted to do this and spent hours buggering about with it. The problem I had is that sometimes I print just one label and the other times anything up to the whole sheet so how do I use the un-used ones.

    I gave up and embedded a word doc Avery template into the a page that formated all the stuff I wanted to print and then pasted it in to the right box and hit print.

    Not a good solution as it is time consuming but all I could come up with.

    A full on solution to allow you to specify which section which address in would save a bucket load of people a hell of a lot of time.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •