| Author |
Write one entry multiple times??
|
|
| Mangler 2006-10-30, 6:59 pm |
| I created a barcode:
<%
RMABarCode = Request.Form("idrma")
IF Len(RMABarCode) Then
response.write "<img src='barcode.asp?code=" & RMABarCode &
"&height=25&width=1&mode=code39'>"
End If
%>
Does anyone know how to display that barcode multiple times through a
variable?
Say a user needs to print 4 of the above barcode, they would be able to
enter the number of barcodes they need and it will display that many to
be printed.
Any kind of help is appreciated.
Respectfully,
Danny
| |
| Mike Brind 2006-10-30, 6:59 pm |
|
"Mangler" <dwaldman@directwireless.com> wrote in message
news:1161979854.509111.184540@i42g2000cwa.googlegroups.com...
>I created a barcode:
> <%
> RMABarCode = Request.Form("idrma")
> IF Len(RMABarCode) Then
> response.write "<img src='barcode.asp?code=" & RMABarCode &
> "&height=25&width=1&mode=code39'>"
> End If
> %>
>
> Does anyone know how to display that barcode multiple times through a
> variable?
>
> Say a user needs to print 4 of the above barcode, they would be able to
> enter the number of barcodes they need and it will display that many to
> be printed.
>
Add another field for the user to enter the number of times they want to
print the barcode.
<%
RMABarCode = Request.Form("idrma")
NoTimes = Request.Form("NoTimes")
If Len(RMABarCode)>0 Then
If IsNumeric(NoTimes) Then
For i = 1 to NoTimes
response.write "<img src='barcode.asp?code=" & RMABarCode &
"height=25&width=1&mode=code39'><br>"
Next
End If
End If
%>
--
Mike Brind
| |
| Mangler 2006-10-30, 6:59 pm |
| Thanks for the reply.
I got an error when the <br> is added and when I take it out it
displays one continuous barcode.
Any ideas?
Respectfully,
Danny
| |
| Mike Brind 2006-10-30, 6:59 pm |
|
"Mangler" <dwaldman@directwireless.com> wrote in message
news:1161982122.658716.78120@m73g2000cwd.googlegroups.com...
> Thanks for the reply.
>
> I got an error when the <br> is added and when I take it out it
> displays one continuous barcode.
>
> Any ideas?
>
Not without some clue as to what error you got.
--
Mike Brind
| |
| Mangler 2006-10-30, 6:59 pm |
| I played with it and got it to work. My only thing is it displays the
barcode across like:
(barcode) (barcode)
How can i get it to show it like:
(barcode)
(bracode)
Respectfully,
Danny
| |
| Mike Brind 2006-10-30, 6:59 pm |
|
"Mangler" <dwaldman@directwireless.com> wrote in message
news:1161983439.463123.27150@k70g2000cwa.googlegroups.com...
>I played with it and got it to work. My only thing is it displays the
> barcode across like:
>
> (barcode) (barcode)
>
> How can i get it to show it like:
>
> (barcode)
>
> (bracode)
By putting <br> back in.
Or surrounding each image with <p>...</p>. (Or <div>... </div> )
| |
| Mangler 2006-10-30, 6:59 pm |
| We are good! Thanks for the help.
Respecfully,
Danny
|
|
|
|