If strange business needs require you to do it in ASP, do this
function AltWidth(i)
{
if(i%2) return "width:350px"
return "width:50px"
}
i = 0
then in the body of your while loop over the records
<label style="<%=AltWidth(i)%>"> Your Text</label><% if (i%2) { %> <BR> <%}%>
then put i++ right before you move to the next record.
That'll at least get you close.
On 8/25/05, Dian D. Chapman <[EMAIL PROTECTED]> wrote:
> If you just want to print address labels from Access data...you can do a
> simple mail merge into Word with the data right into a predefined label
> format by just locating the label number and setting up that template.
> Assuming the results are just printed labels and have nothing to do with
> HAVING to be on the web or in a browser...do it through Word.
>
> If you need help setting that format up...you can jump into one of my groups
> to get the details you need. I have a Word Doc Design group where we'd be
> more than happy to help you out. See this page for a list of these MS Office
> groups: http://www.mousetrax.com/resources.html.
>
>
> Dian ~
>
>
>
> -----Original Message-----
> From: [email protected]
> [mailto:[EMAIL PROTECTED] On Behalf Of Shawn K. Hall
> Sent: Thursday, August 25, 2005 3:26 PM
> To: [email protected]
> Subject: RE: [ASP] Printing Address Labels using ASP/ Access
>
> Hi Sharad,
>
> > We want to print address labels in two columns using
> > asp script, in pre defined height and width. The
> > data is stored in an Access table.
> >
> > Is it possible to print/display 2 records per row?
> > Fields containing no data are to be eliminated, as
> > blank rows will be printed on labels.
>
> HTML is an imperfect form for such a thing, as the browser ultimately
> decides how to interpret the widths and sizes you specify, and not all
> browsers do a good job of this. Instead, consider using PHP with the PDF
> module to generate exacting sizes and widths from your database.
>
> Regards,
>
> Shawn K. Hall
> http://12PointDesign.com/
> http://ReliableAnswers.com/
>
>
>
>
>
> ---------------------------------------------------------------------
> Home : http://groups.yahoo.com/group/active-server-pages
> ---------------------------------------------------------------------
> Post : [email protected]
> Subscribe : [EMAIL PROTECTED]
> Unsubscribe: [EMAIL PROTECTED]
> ---------------------------------------------------------------------
> Yahoo! Groups Links
>
>
>
>
>
>
>
> --
> No virus found in this incoming message.
> Checked by AVG Anti-Virus.
> Version: 7.0.344 / Virus Database: 267.10.15/81 - Release Date: 8/24/2005
>
>
> --
> This email scanned and certified clean by AVG!
> Checked by AVG Anti-Virus.
> Version: 7.0.344 / Virus Database: 267.10.15/81 - Release Date: 8/24/2005
>
>
>
>
>
> ---------------------------------------------------------------------
> Home : http://groups.yahoo.com/group/active-server-pages
> ---------------------------------------------------------------------
> Post : [email protected]
> Subscribe : [EMAIL PROTECTED]
> Unsubscribe: [EMAIL PROTECTED]
> ---------------------------------------------------------------------
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
------------------------ Yahoo! Groups Sponsor --------------------~-->
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/17folB/TM
--------------------------------------------------------------------~->
---------------------------------------------------------------------
Home : http://groups.yahoo.com/group/active-server-pages
---------------------------------------------------------------------
Post : [email protected]
Subscribe : [EMAIL PROTECTED]
Unsubscribe: [EMAIL PROTECTED]
---------------------------------------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/active-server-pages/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/