Vertical Printing

Vertical Printing

Forum member · Mar 19, 2012
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

Re: Vertical Printing

Support · Mar 19, 2012
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 MyDocument.DrawToWeb Set MyPage = Nothing Set MyDocument = Nothing Thanks, ceTe Software Support Team.