Description

Adds a Ean8 bar code object to the Template object and returns a New Ean8 object.

Syntax

Public Function AddEan8( _
   ByVal CodeValue As String, _
   ByVal X As Single, _
   ByVal Y As Single _
) As Ean8

Parameters

CodeValue
The value stored in the bar code.
X
The X Coordinate of the Ean8 bar code.
Y
The Y Coordinate of the Ean8 bar code.

Return Type

A Ean8 object.

Example

[ASP - VBScript] 

<% 
    ' Create a PDF Document 
    Dim MyDocument  
    Set MyDocument = Server.CreateObject( "DynamicPDF.Document" )  
    Dim MyDocTemplate 
    Set MyDocTemplate = MyDocument.SetTemplate() 
    ' Create 3 Pages and add it to the document 
    MyDocument.AddPage() 
    MyDocument.AddPage() 
    MyDocument.AddPage() 
    ' Create a bar code 
    Dim MyBarcode 
    Set MyBarcode = MyDocTemplate.AddEan8( "12345670", 20, 20 ) 
    MyBarCode.SetScale( 24 ) 
    ' Draw the PDF 
    MyDocument.DrawToWeb 
    Set MyDocument = Nothing 
%>

See Also

Template Object