Video Screencast Help
Scheduled Maintenance: Symantec Connect is scheduled to be down Saturday, April 19 from 10am to 2pm Pacific Standard Time (GMT: 5pm to 9pm) for server migration and upgrades.
Please accept our apologies in advance for any inconvenience this might cause.

Create barcode from text?

Created: 02 May 2013 • Updated: 14 May 2013 | 14 comments
This issue has been solved. See solution.

Is there a way to have workflow take a string of text that is entered by the user of the form and display it as a barcode?  Any help would be appreciated.

 

Thanks,

John

Operating Systems:

Comments 14 CommentsJump to latest comment

reecardo's picture

We actually have a Barcode component library in the codebase, but it's never been delivered. Unsure why - more than likely it's pretty "raw".

There's probably some freeware web services out in the wild you could generate against to get some components.

reecardo's picture

I've actually got the "raw" comp right here in the attached. Basically I just used the defaults and it spits out a FileDataType. A Write File after that got the image (C:\myfile.tiff) to my hard drive.

NOTE: I built this against the trunk of the codebase. If it doesn't work for you, let me know and I'll try and build it against a "lesser" version of WF. Note that this comp come "as is"- and I'm pretty sure it implements the barcode font mentioned below.

 

AttachmentSize
LogicBase.Components.Barcode.zip 8.24 KB
John Atkins's picture

I'm not sure how to use this.  I added it to a web forms project and then double clicked on it and I get an error.

John Atkins
Advanced Client Services Engineer
LifeWay Christian Resources
http://www.lifeway.com

TN User Group Membership Director
 

reecardo's picture

Which version of WF are you using? (you can right click on a component DLL and go to Details to get it)

Rob Moore's picture

There are several public webservices you can access that will take in text and output a barcode. One that comes to mind is http://www.barcodesinc.com/generator/index.php .

This one allows test to be submitted via a URL, which generates the barcode:

 

http://www.barcodesinc.com/generator/image.php?code=This%20is%20a%20test&style=197&type=C128B&width=200&height=50&xres=1&font=3

 

Enter your text after the Code= (example says This is a test)

 

They also have a barcode font that you can download for free which should allow you to print out barcodes should you need it.

 

rob

John Atkins's picture

How do you add a font to workflow?  I downloaded a barcode font and installed it in Windows and it still does not show up in Workflow.

 

Nevermind.  I had to close Workflow and reopen for the fonts to show up.  Thanks.

John Atkins
Advanced Client Services Engineer
LifeWay Christian Resources
http://www.lifeway.com

TN User Group Membership Director
 

John Atkins's picture

Well I thought I had this until I ran the form from a different system and realized the every system that will run this form will not have the barcode font.  Is there a way to add this font into the webpage?  I can not install the barcode font on all these computers.

 

Or does anyone have another idea?

John Atkins
Advanced Client Services Engineer
LifeWay Christian Resources
http://www.lifeway.com

TN User Group Membership Director
 

reecardo's picture

My handcoded comps above have the font we're talking about included as a resource. If you give me your WF version, I can probably build my comps against that version.

John Atkins's picture

Ver 7.1.0140.119

John Atkins
Advanced Client Services Engineer
LifeWay Christian Resources
http://www.lifeway.com

TN User Group Membership Director
 

reecardo's picture

I'm assuming you meant 1400 here, which is SP1. Attached is the barcode comp built against the SP1 rollup branch... hopefully this works out better.

 

AttachmentSize
LogicBase.Components.Barcode.SP1Rollup.zip 7.92 KB
John Atkins's picture

I still get this error after adding the componet in my web form workflow.

 

Capture.JPG

John Atkins
Advanced Client Services Engineer
LifeWay Christian Resources
http://www.lifeway.com

TN User Group Membership Director
 

reecardo's picture

Oh, the joys of working across heavily-rearchitected versions

Try the new attached version

I don't have an SP1 machine up, so I'm coding this pretty blind. All I have is a trunk version and I'm basically just pushing code back.

 

AttachmentSize
LogicBase.Components.Barcode.IEditor.zip 7.94 KB
John Atkins's picture

Now we are getting somewhere.  I can edit and work with this one, but is there any way to have the code come from a variable.

John Atkins
Advanced Client Services Engineer
LifeWay Christian Resources
http://www.lifeway.com

TN User Group Membership Director
 

reecardo's picture

Just sent you a private message. The comp in that lib should let you specify vars in the input.

SOLUTION