- #Image pro plus sdk how to#
- #Image pro plus sdk code#
Private void printDocumentObject_PrintPage(object sender, e)īarcodeProfessional bcp = new BarcodeProfessional() 'Print the barcode at x=1in, y=1in using DrawOnCanvas methodīcp.DrawOnCanvas(e.Graphics, New PointF(1F, 1F)) Private Sub printDocumentObject_PrintPage(sender As Object, e As ) IMPORTANT: The unit of measure for the barcode location/point must be specified to BarcodeUnit property of BarcodeProfessional object.
#Image pro plus sdk code#
Supposing you have already set an event handler for the PrintDocument's PrintPage event, the following code inside that handler procedure will create a Barcode Professional object and will print the generated barcode at the specified point (in this case x=1in, y=1in) in the document/page. Here, the Graphics object exposed by PrintDocument's PrintPage event must be passed to the Barcode Professional's DrawOnCanvas method in order to get the barcode printed at the specified point (x, y). This is the simplest barcode printing scenario.
#Image pro plus sdk how to#
How to print barcodes using PrintDocument class
How to print barcodes that need to fit a given area using PrintDocument class. How to print scaled barcodes using PrintDocument class. How to print barcodes using PrintDocument class. This guide describes common scenarios regarding barcode printing using the PrintDocument class and Barcode Professional's DrawOnCanvas method: Microsoft Visual Studio 2005/2008 or Visual Studio 2005/2008 Express Editions (Visual Basic 2005/2008 Express, Visual C# 2005/2008 Express, etc) Neodynamic Barcode Professional SDK 2.0 for. The PrintDocument's PrintPage event exposes a Graphics object where to paint the page content and here is where that Graphics object must be passed to the DrawOnCanvas method in order to get the barcode image printed. If your application needs to feature barcoding capabilities, it's also probably that printing documents containing barcode images are required as well.īarcode Professional control features an overloaded method called DrawOnCanvas which lets you to draw the barcode image on any GDI+ Graphics object - an instance of class. Here is where you should add your printing logic to an event handler for that event. After Print method is invoked, the PrintDocument raises a PrintPage event for each page to be printed. The main method the PrintDocument class features is Print which starts the document's printing process. The PrintDocument class is used to set the properties that describe what and where to print content such us strings, images and so on. NET Framework are performed by using the PrintDocument class under namespace. NET Published Īs you probably already know, most printing jobs within. How to print barcode images with Barcode Professional SDK for.