GithubHelp home page GithubHelp logo

Comments (3)

GoogleCodeExporter avatar GoogleCodeExporter commented on May 28, 2024
Hello,

When you call BarCodeGenerator::GenerateImage, you get back a 
[System.Drawing.Image](http://msdn.microsoft.com/en-us/library/system.drawing.im
age.aspx) instance. Your image is in-memory. To save it to disk, you can use 
the [Save 
method](http://msdn.microsoft.com/en-us/library/system.drawing.image.save.aspx):

Using barcodeimage = generator.generateimage()
  barcodeimage.Save("my_barcode.png", ImageFormat.Png)
End Using

Hope this helps.

Original comment by [email protected] on 2 Dec 2011 at 12:47

  • Changed state: Done
  • Added labels: Type-Task
  • Removed labels: Type-Defect

from nbarcodes.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 28, 2024
I also noticed that you're using the NBarCodes.Forms.BarCodeControl just to 
generate an image and save it to disk. If you don't want to show the barcode in 
a Form, you might as well just use the API to generate the barcode 
programmatically. Use the NBarCodes.BarCodeSettings class as described here: 
http://code.google.com/p/nbarcodes/#API

Original comment by [email protected] on 2 Dec 2011 at 12:53

from nbarcodes.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 28, 2024
If, on the other hand, you do want to show the control on a Form, it seems you 
already have an instance to use (BarCodeControl1). Your code could simply be:

    BarCodeControl1.Visible = True 
    BarCodeControl1.Type = NBarCodes.BarCodeType.Code128
    BarCodeControl1.Data = Label1.Text

Original comment by [email protected] on 2 Dec 2011 at 12:56

from nbarcodes.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.