This topic is locked

Add Bar Code on List, View and Print

9/22/2014 12:40:28 PM
ASPRunnerPro General questions
G
gonzalosb author

Hi All,

I'm looking to add regular linear barcode (not QR code) on list, view and print pages so it can work with standard barcode scanners.
thank you in advance

mperry622 9/22/2014



Hi All,

I'm looking to add regular linear barcode (not QR code) on list, view and print pages so it can work with standard barcode scanners.
thank you in advance


http://stackoverflow.com/questions/240948/web-pages-and-barcode-fonts
this guy has a neat way of using a series of images and assembling on the fly...
if you want to go this route i can help you code your fields to display these...

G
gonzalosb author 9/24/2014

sounds interesting, Mikeperry please guide me on how to do this

admin 9/25/2014

PHPRunner has barcode plugin. Unfortunately we do not have anything for ASP, that plugin relies on a large piece of PHP code that is not possible to translate to ASP. Unless anyone has better solution I would suggest using PHPRunner for this type of project.

mperry622 9/25/2014

I have been noodling with this for a few days just parsing out your ten digit numbers into 1 number each.
I have it working after i edited the png's to remove whitespace...
Maybe someone here can shead more light on this...

https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=75773&image=1&table=forumreplies


Set your field to custom and paste this code in:

if Mid(strValue,1,1) = 0 then strValue = "<img src='/images/3o9bc_0.png'>" else if Mid(strValue,1,1) = 1 then strValue = "<img src='/images/3o9bc_1.png'>"



I got this working but it isnt adding the image to the end...
This might not be the best route..... ill keep clicking away on this.. i hate to admit defeat.

M
Maurits 9/26/2014

Have a look on this page.
Here is it how it is done in pure ASP without DLL and COM+.

Download the sample and have a look at the source code.
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=8817&lngWId=4