Vertical Printing

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF Generator for COM/ActiveX (v4)  /  Re: Vertical Printing

DynamicPDF Generator for COM/ActiveX (v4) Forum

 Mar 19 2012 3:38 PM
I want to print a barcode vertically.  I don't see a way to do it looking at the properties of AddCode128.  Do I change the page orientation and then change it back?  Thanks in advance.  Tim
 Mar 19 2012 5:19 PM
Posted by a ceTe Software moderator
Hello Tim,

You could use the Angle property on the barcode page element to make the barcode vertical with respect to the page. Refer to sample code below.

    Dim MyDocument 
    Set MyDocument = Server.CreateObject( "DynamicPDF.Document" ) 
    ' Create a Page and add it to the document
    Dim MyPage 
    Set MyPage = MyDocument.AddPage()
    ' Create a bar code
    Dim MyBarcode
    Set MyBarcode = MyPage.AddCode128( "Code 128 Bar Code.", 50, 50, 48 )
    MyBarcode.Angle = 90
    ' Draw the PDF
    Set MyPage = Nothing
    Set MyDocument = Nothing 

ceTe Software Support Team.

All times are US Eastern Standard time. The time now is 10:08 PM.