ビデオヘルプ

Create barcode from text?

作成: 02 May 2013 • 更新: 14 May 2013 | コメント数: 14
この問題は解決されました。 ソリューションを参照してください。

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

オペレーティングシステム

コメント コメント数: 14最新のコメントを表示

reecardo の写真

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 の写真

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.

添付サイズ
LogicBase.Components.Barcode.zip 8.24 KB
John Atkins の写真

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 の写真

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

Rob Moore の写真

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 の写真

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 の写真

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 の写真

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 の写真

Ver 7.1.0140.119

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

TN User Group Membership Director
 

reecardo の写真

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.

添付サイズ
LogicBase.Components.Barcode.SP1Rollup.zip 7.92 KB
John Atkins の写真

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 の写真

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.

添付サイズ
LogicBase.Components.Barcode.IEditor.zip 7.94 KB
John Atkins の写真

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 の写真

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

ソリューション