page.Cell(10,1).AddComponent(ABMShared.BuildLabel(page, "pdftext1", "The PDF Viewer Component", ABM.SIZE_H4, "lbltheme1", 0, "20px"))
' Now here is a cool component - the PDF viewer...
' note the options of this control - without you having to code a damn thing...
' also note where the pdf file exists... - "../images/1.pdf"
Dim pdf As ABMPDFViewer
pdf.Initialize(page, "pdf", 600, "../images/1.pdf","")
pdf.PreparePrintingText = "Preparing to print..."
pdf.ReadDirection = ABM.PDF_READDIRECTION_LTR
pdf.AllowDownload = True
pdf.AllowOpen = False
pdf.AllowPrint = True
pdf.AllowSideBar = True
pdf.AllowViewBookmark = False
page.Cell(10,1).AddComponent(pdf)