Home
Suggestion or Comment?

Bytescout.BarCode SDK for .NET
Screenshots

Click to view full size screenshot Click to view full size screenshot Click to view full size screenshot Click to view full size screenshot Click to view full size screenshot Click to view full size screenshot
Subscribe to Our Bi-Monthly Newsletter (tips, new releases, specials):
 Subscribe in a reader
 PRODUCTS  |  DOWNLOAD  |  PURCHASE  |  SUPPORT  |  TESTIMONIALS   |  NEWS  | 

How to add barcode (made with Bytescout BarCode SDK) into new PDF document generated with PDFDoc Scout ActiveX library

Download Free Trial Buy Now More Information
Shop Safely: BarCode SDK comes with a 30-DAY UNCONDITIONAL MONEY-BACK GUARANTEE

This sample code demonstrates how to insert barcode image into new PDF document which is generated using PDFDoc Scout ActiveX library.

PDFDoc Scout ActiveX is capable of generating new PDF documents using EMF, PNG, JPG, BMP images and built in drawing API. Also supports HTML,

The barcode image is generated using Bytescout BarCode SDK which is compatible with .NET 1.10, .NET 2.00 and ActiveX (through ActiveX object interfaces support)

PDF document generated using PDFDoc Scout ActiveX with barcode image generated by Bytescout BarCode SDK using ActiveX interface

Visual Basic 6 / VBScript sample code

Set PDFDoc = CreateObject("PDFDocScout.PDFDocument") ' create PDFDoc object
PDFDoc.InitLibrary "demo", "demo" ' initialize library

PDFDoc.OutputFileName = "HelloWorld.pdf" ' set output filename for PDF document
PDFDoc.AutoOpenGeneratedPDF = true ' automatically open generated PDF document in default PDF viewer application

PDFDoc.BeginDocument ' starts PDF document generation

' add text to current page - draw text at (100,100) and rotate at 15 degrees
PDFDoc.Page.AddText "Hello, World!", 100, 100, 15

Set bc = CreateObject("Bytescout.BarCode.Barcode")

' set symbology to Code39
bc.Symbology = 15 ' 0 = DataMatrix symbology type

' set barcode value to encode
bc.Value = "http://www.bytescout.com"

' Draw barcode
bc.DrawHDC PDFDoc.hDC, 0,0

PDFDoc.EndDocument ' close pdf document generation

' disconnect from libraries
Set PDFDoc = Nothing
Set bc = Nothing

Download Free Trial Buy Now More Information
Shop Safely: BarCode SDK comes with a 30-DAY UNCONDITIONAL MONEY-BACK GUARANTEE

Documentation online: view (new window)

Generate and display barcodes in:

Visual Basic 6 samples (ActiveX object interface): Advanced Samples (Word, Crystal Reports, PDF): Advanced Samples (.NET 1.10 and higher): Advanced Examples (2D barcodes):

HOME  |  CONTACT US

Copyright © ByteScout, 2003-2010. Privacy Statement
Microsoft®, Windows®, Windows 2000®, Windows Server®, Windows Vista®, Internet Explorer®, .NET Framework®, ActiveX®, Visual Basic®, Visual C#®, ASP®, ASP.NET®, Excel®, PowerPoint®, are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries. Adobe®, Flash® and Acrobat® are registered trademarks of Adobe Systems, Incorporated. Mozilla®, Firefox® and the Mozilla and Firefox Logos are registered trademarks of the Mozilla Foundation. Other product names or brandnames used herein are for identification purposes only and might be trademarks or registered trademarks of their respective companies. We disclaim any and all rights to those marks.