barcode

how to use onActivityResult(..) if the activity is called from a menu

醉酒当歌 提交于 2019-12-19 02:05:54
问题 This is my problem: class main extends menuActivity{ // .. // public void onActivityResult(int requestCode, int resultCode, Intent data) { if (resultCode == 0) camera_barcode = INTENT.getStringExtra("SCAN_RESULT"); } } } the INTENT is created in the menuActivity class: public class menuActivity extends Activity { public INTENT; @Override public boolean onCreateOptionsMenu(Menu menu) { } @Override public boolean onOptionsItemSelected(MenuItem item) { // INTENT = new Intent("com.google.zxing

Save generated bar code image in database and in folder using codeigniter

浪子不回头ぞ 提交于 2019-12-18 18:31:34
问题 I have used library to generate barcode. Bar code is generated but problem is that how can i save that generated image? Here i am giving my code i have used: In controller: function add($bar_code) { $postData['bar_code'] = $this->set_barcode($postData['bar_code']); } function set_barcode($code) { $this->load->library('zend'); $this->zend->load('Zend/Barcode'); $bar_code = Zend_Barcode::render('code128', 'image', array('text'=>$code), array('imageType' => 'jpg'))->draw(); return $bar_code; }

Remove Text from below of the BarCode in ASP.NET(C#)

微笑、不失礼 提交于 2019-12-18 12:46:02
问题 I am generating the barcode generation of barcode is working fine barcode also read it perfectly.followin is the code for barcode generation: private void GenerateBarCode(string codeInfo) { //Settings for the Image string TypeFaceName = "IDAutomationHC39M"; string imageLocation = Server.MapPath("2010.png"); //The format of the image file ImageFormat format = ImageFormat.Png; //path of unique file name string path = "D://MyProjects//RepeaterPaging//images//vijendra.png"; //REFERENCING A FONT

Reading and decoding PDF-417 barcodes stored in an image or PDF file from within a .NET application

余生颓废 提交于 2019-12-18 11:55:49
问题 I am looking for a .NET library that is able to decode data from a PDF-417 barcode that is embedded either in an image file or PDF. At this point, I have only been able to find a Java version and a C version. Ideally, this library would be both open-source and free of charge, but I doubt such a decoder exists. I am open to trying out demos of existing products that you may have had experience with - which leads me to the question - have you had any experience reading PDF-417 barcodes embedded

Barcode generation libraries for Delphi [closed]

时光毁灭记忆、已成空白 提交于 2019-12-18 05:18:13
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . is there any barcode generation libraries for Delphi (prefered freeware of course), which generate most known barcode types (Code 39, Code 93, EAN, UPC)? 回答1: The old TurboPower SysTools (available from SourceForge) does POSTNET, UPC A, UPC E, EAN 13, EAN 8, Interleaved 2 of 5, Codabar, Code 11, Code 39, Code 93

Zend Framework Render Barcodes Into PDF Pages

别来无恙 提交于 2019-12-18 05:18:05
问题 I'm trying to create PDF pages with barcodes that have correct margins to be printed on sheets of labels (If you have another idea of how to print barcodes onto labels without PDF generation, I'd love to hear it). Below is what I have currently for code: $pdf = new Zend_Pdf(); for($i = 1; $i <= $numberOfPages; $i++) { $page = new Zend_Pdf_Page(Zend_Pdf_Page::SIZE_A4); $page->setFont(Zend_Pdf_Font::fontWithName(Zend_Pdf_Font::FONT_HELVETICA), 20); $pdf->pages[] = $page; } foreach($pdf->pages

Barcode with Text Under using ItextSharp

两盒软妹~` 提交于 2019-12-18 02:48:05
问题 I am using iTextSharp in my application to generate a barcode. Though everything is working as I wanted, I need to display the value of the barcode under the barcode like the one showin in the attached image. Below is the C# code I use: Barcode39 barcodeImg = new Barcode39(); barcodeImg.Code = barcodeValue.ToString(); barcodeImg.CreateDrawingImage(System.Drawing.Color.Black, System.Drawing.Color.White).Save(stream, ImageFormat.Png); 回答1: This is code I found while searching the net. Hope this

How to generate barcode from a string using C#?

折月煮酒 提交于 2019-12-17 22:32:31
问题 Is it possible to generate barcode from a string using c#? Is there any builtin classes for generating barcodes in asp.net? Is it possible to detect a barcode printer connected with a system? 回答1: Yep. Of course it is possible. :-) As far as I know there are two ways to generate bar codes: Using a special bar code font (try to google for "barcode font free") Render the bar code to an image and display that (try using the Barcode Rendering Framework available on codeplex) In response to your

How to ask runtime permissions for Camera

此生再无相见时 提交于 2019-12-17 19:22:20
问题 I am doing an application to scan barcodes on a button click and it was working fine up to Lollipop versions. When I came to Marshmallow it stopped working. This is the error: camerabase an error occurred while connecting to camera 0 It forces me to turn on permission by: Settings --> application --> my app --> camera. My question is how to allow camera permission to my app automatically in Marshmallow or by asking the user to turn on camera at runtime. A screen shot: 回答1: Below I have

Barcode/Qr Code Reader for Android [closed]

南楼画角 提交于 2019-12-17 18:03:59
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . i would like to implement a QR Code/Barcode reader within my application. I would like to know what is the most lightweight solution to do this (disregarding intent integrator from zxing). 回答1: I used zxing to build into my application. You will need a bit of coding. First include core.jar , its at core/core.jar