Hi, Please help me how to integrate barcode reader to ruby on rails application?Please give me sample code Regards, Shan -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
So what platform is this bar code reader supposed to run on? It might have some bearing on the solution being offered you would think. The more pertinent information you supply the greater the likelihood of getting a useful reply. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Feb 14, 2012, at 5:42 AM, Peter Hickman wrote:> It might have some bearing on the solution being offered you would think.Up to and including "you can''t do it that way". It''s shocking how many so-called web developers from the Windows side don''t realize that in browsers on those other platforms you can''t necessarily have arbitrary access to the file system and attached devices--and that this is considered a feature. -- Scott Ribe scott_ribe-ZCQMRMivIIdUL8GK/JU1Wg@public.gmane.org http://www.elevated-dev.com/ (303) 722-0567 voice -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 14 Feb 2012, at 15:13, Scott Ribe wrote:> On Feb 14, 2012, at 5:42 AM, Peter Hickman wrote: > >> It might have some bearing on the solution being offered you would >> think. > > Up to and including "you can''t do it that way". It''s shocking how > many so-called web developers from the Windows side don''t realize > that in browsers on those other platforms you can''t necessarily have > arbitrary access to the file system and attached devices--and that > this is considered a feature.I won''t do the work the original poster is asking us to do, but there is actually a way to use barcode scanners without having access to attached devices or the filesystem (and it will work on any browser for that matter). Most barcode scanners support emulating keyboard presses (and send them as if someone would actually type out the number the barcode represents). Some of them even allow you to set a leading character (just some control code) and to end the barcode with some keypress (like ENTER or Return or even a custom random keystroke). You''ll have to do your own research to find which ones you can buy where you live and which ones support this feature. On a side node, most local barcode scanner suppliers will be happy to send you a test device if you ask them nicely. Given that the barcode scanner allows for a leading and a trailing keypress, all that would be required is that the browser window that allows scanning the barcode is the frontmost and active window at all times. Then it''s just a matter of writing some javascript code that listens for the keyup event, if the leading control code is sent you start capturing whatever comes next into a javascript variable until it hits the trailing control code, then send that off to the server for processing. If the barcode scanner doesn''t allow a leading character, you can just make sure that webpage is just accepting barcode input. This is as far as I can and will take you. You basically have all the pieces of the puzzle, now it''s up to you to find the right device, write the necessary code to capture the device output and make it work with your app. That''s part of being a developer: solve problems and come up with a good solution and then actually write the code for it. Best regards Peter De Berdt -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
@Peter - so true - have an application running for 2+ yrs with barcode support (label and scanners) scanners: like Peter described, emulating keypress label: using Flying Saucers xhtmlrenderer java project to render PDF''s with barcodes cheers, Walther Den 14/02/2012 kl. 15.36 skrev Peter De Berdt:> > On 14 Feb 2012, at 15:13, Scott Ribe wrote: > >> On Feb 14, 2012, at 5:42 AM, Peter Hickman wrote: >> >>> It might have some bearing on the solution being offered you would think. >> >> Up to and including "you can''t do it that way". It''s shocking how many so-called web developers from the Windows side don''t realize that in browsers on those other platforms you can''t necessarily have arbitrary access to the file system and attached devices--and that this is considered a feature. > > I won''t do the work the original poster is asking us to do, but there is actually a way to use barcode scanners without having access to attached devices or the filesystem (and it will work on any browser for that matter). > > Most barcode scanners support emulating keyboard presses (and send them as if someone would actually type out the number the barcode represents). Some of them even allow you to set a leading character (just some control code) and to end the barcode with some keypress (like ENTER or Return or even a custom random keystroke). You''ll have to do your own research to find which ones you can buy where you live and which ones support this feature. On a side node, most local barcode scanner suppliers will be happy to send you a test device if you ask them nicely. > > Given that the barcode scanner allows for a leading and a trailing keypress, all that would be required is that the browser window that allows scanning the barcode is the frontmost and active window at all times. Then it''s just a matter of writing some javascript code that listens for the keyup event, if the leading control code is sent you start capturing whatever comes next into a javascript variable until it hits the trailing control code, then send that off to the server for processing. > If the barcode scanner doesn''t allow a leading character, you can just make sure that webpage is just accepting barcode input. > > This is as far as I can and will take you. You basically have all the pieces of the puzzle, now it''s up to you to find the right device, write the necessary code to capture the device output and make it work with your app. That''s part of being a developer: solve problems and come up with a good solution and then actually write the code for it. > > > Best regards > > Peter De Berdt > > -- > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
there are many ways to do that. If you wanna save these complicated steps and find a easy way, you can google barcode scanner and you will find many useful tools, or google how to read barcode in c# to get instructive articles. Good luck:) I think some imaging sdk programmes can enable to quickly scan barcodes. i have use imaging sdkr which can original layouts hyperlinks, Images and tables retained in word ,text, image, Epub, html.but i forgot download the wedsite ,go to google. By the way , pay attention to your system platform, select the suitable one . I use a barcode scanner driver found on the internet . Install it and it becomes a selectable option.Then you can scan barcodes in many formats in any program at all, including Adobe Acrobat . Just open the sdk, select barcode, and choice a form you want, then you can scan barcode in c#, vb, sdp ,etc ,the task will be finished in several seconds. if you haven''t found a good choice , you can have a try. best wishes. http://www.rasteredge.com/how-to/csharp-imaging/read-barcode-csharp/ -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/f1a5c4a08536f84c61cc7c598382f160%40ruby-forum.com. For more options, visit https://groups.google.com/groups/opt_out.
I think you really need to make full use of Google. When you just put "barcode reader" in google, you can find various barcode readers, like QR Code reader <http://www.onbarcode.com/csharp/qr-code-reader.html>, Code 39 reader <http://www.onbarcode.com/csharp/code-39-reader.html>, etc. I believe you can find what you want soon. Nowadays reading barcode is very easy with a barcode reader. You just install it in your program and do a few steps and the work is done. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/7364af85-33e0-4284-8e41-9df99d1c8047%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
thanx for you guys sharing! more information about barcode reader or scanner ,you may tr to search on google,and i found another one http://www.keepautomation.com/products/net_barcode_reader/barcode_upce.html -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/dc425d617ffb42657c0b4e50ccdc64bc%40ruby-forum.com. For more options, visit https://groups.google.com/groups/opt_out.