See Also

Code128 Members  | ceTe.DynamicPDF.PageElements.BarCoding Namespace

Requirements

Namespace: ceTe.DynamicPDF.PageElements.BarCoding

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: ceTe.DynamicPDF (in ceTe.DynamicPDF.dll)

Language

Visual Basic

C#

Show All

Represents a Code 128 bar code.

For a list of all members of this type, see Code128 members.

Object Model




Inheritance Hierarchy

System.Object
   ceTe.DynamicPDF.PageElement
      ceTe.DynamicPDF.PageElements.RotatingPageElement
         ceTe.DynamicPDF.PageElements.BarCoding.BarCode
            ceTe.DynamicPDF.PageElements.BarCoding.TextBarCode
               ceTe.DynamicPDF.PageElements.BarCoding.Code128

Syntax

[Visual Basic]
Public Class Code128    Inherits TextBarCode    Implements ICoordinate 
[C#]
public class Code128 : TextBarCode, ICoordinate 

Remarks

This class can be used to place a Code 128 bar code on a page.

Example

The following example will place a Code 128 bar code on the page.

[Visual Basic] 

Imports System
Imports ceTe.DynamicPDF
Imports ceTe.DynamicPDF.PageElements.BarCoding

Module MyModule

    Sub Main()

        ' Create a PDF Document
        Dim MyDocument As Document = New Document

        ' Create a Page and add it to the document
        Dim MyPage As Page = New Page
        MyDocument.Pages.Add(MyPage)

        ' Create a bar code
        Dim barCode As Code128 = New Code128("Code 128 Bar Code.", _
            50, 50, 48, 0.75F)

        ' Add the bar code to the page
        MyPage.Elements.Add(barCode)

        ' Save the PDF
        MyDocument.Draw("C:\MyDocument.pdf")

    End Sub
End Module

[C#] 

using System; 
using ceTe.DynamicPDF; 
using ceTe.DynamicPDF.PageElements.BarCoding; 
 
class MyClass 

    static void Main() 
    { 
        // Create a PDF Document 
        Document document = new Document(); 
 
        // Create a Page and add it to the document 
        Page page = new Page(); 
        document.Pages.Add( page ); 
 
        // Create a barcode 
        Code128 barCode = new Code128("Code 128 Bar Code.",  
            50, 50, 48, 0.75F);         
 
        // Add the barcode to the page 
        page.Elements.Add( barCode );     
 
        // Save the PDF 
        document.Draw( @"C:\MyDocument.pdf" ); 
    } 
}

Licensing

This class is a DynamicPDF Generator Enterprise Edition feature. One of the following licenses is required for non-evaluation usage:

Requirements

Namespace: ceTe.DynamicPDF.PageElements.BarCoding

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: ceTe.DynamicPDF (in ceTe.DynamicPDF.dll)

See Also

Code128 Members  | ceTe.DynamicPDF.PageElements.BarCoding Namespace

 

 


© Copyright 2007, ceTe Software