REM preq.bbj
REM This sample uses the BBj Print Object to create a BASIS Purchase Requisition form
REM Set PrintRequest attributes for print job
REM Obtain the instance to the BBjAPI object
myAPI!=BBjAPI()
REM Obtain an instance of a default BBjPrinter object
LET myBBjPrinter!=myAPI!.getBBjPrinter(1)
REM Create Fonts Needed
let textfont!= new java.awt.Font("Arial",java.awt.Font.PLAIN,10)
let boldfont!=new java.awt.Font("Arial",java.awt.Font.BOLD,10)
let bigboldfont!=new java.awt.Font("Arial",java.awt.Font.BOLD,12)
let largefont!=new java.awt.Font("Times New Roman",java.awt.Font.BOLD,24)
let italicFont!=new java.awt.Font("Times New Roman",java.awt.Font.ITALIC,10)
REM Create Colors Needed
black!=new java.awt.Color(black)
white!=new java.awt.Color(white)
REM Create a set of request attributes
LET requestAttributes!=new javax.print.attribute.HashPrintRequestAttributeSet()
requestAttributes!.add(javax.print.attribute.standard.MediaSizeName.NA_LETTER)
requestAttributes!.add(javax.print.attribute.standard.OrientationRequested.PORTRAIT)
units=javax.print.attribute.standard.MediaPrintableArea.INCH
x!=new java.lang.Float(0.3).floatValue()
y!=new java.lang.Float(0.3).floatValue()
w!=new java.lang.Float(7.9).floatValue()
h!=new java.lang.Float(10.4).floatValue()
a!=new javax.print.attribute.standard.MediaPrintableArea(x!,y!,w!,h!,units)
requestAttributes!.add(a!)
myBBjPrinter!.setAttributes(requestAttributes!)
doc!=myBBjPrinter!.getForm(0)
page!=doc!.createPage()
REM ****************************************
REM TITLE SECTION
REM ****************************************
REM Image
image1!=page!.newImage()
image1!.setURL("file:c:\bbxprograms\basislogo.gif")
image1!.setPosition(new java.awt.Point(0,0))
image1!.setWidth(185)
image1!.setHeight(68)
REM Text
title1!=page!.newParagraph()
title1!.setHorizontalFill(1)
title1!.setPosition(new java.awt.Point(320,10))
title1!.setText("Purchase Requisition")
title1!.setFont(largefont!)
REM Text for Requested By:
title2!=page!.newParagraph()
title2!.setHorizontalFill(1)
title2!.setPosition(new java.awt.Point(180,56))
title2!.setText("Requested By:")
title2!.setFont(textfont!)
REM Text for Date:
title3!=page!.newParagraph()
title3!.setHorizontalFill(1)
title3!.setPosition(new java.awt.Point(425,56))
title3!.setText("Date:")
title3!.setFont(textfont!)
REM Text for Choose one:
title4!=page!.newParagraph()
title4!.setHorizontalFill(1)
title4!.setPosition(new java.awt.Point(20,86))
title4!.setText("Choose one:")
title4!.setFont(textfont!)
REM Text for Yes, issue PO
title5!=page!.newParagraph()
title5!.setHorizontalFill(1)
title5!.setPosition(new java.awt.Point(100,87))
title5!.setText("Yes, issue PO")
title5!.setFont(textfont!)
REM Text for No PO required
title6!=page!.newParagraph()
title6!.setHorizontalFill(1)
title6!.setPosition(new java.awt.Point(100,102))
title6!.setText("No PO required")
title6!.setFont(textfont!)
REM Text for Items(s) will be received....
title7!=page!.newParagraph()
title7!.setHorizontalFill(1)
title7!.setPosition(new java.awt.Point(200,86))
title7!.setText("Item(s) will be received in Shipping & Receiving OR vendor requires a Purchase Order")
title7!.setFont(italicfont!)
REM Text for This is approval backup...
title8!=page!.newParagraph()
title8!.setHorizontalFill(1)
title8!.setPosition(new java.awt.Point(200,101))
title8!.setText("This is approval backup for the purchase; no items will be received")
title8!.setFont(italicfont!)
REM Text for Cost Center(s)
title9!=page!.newParagraph()
title9!.setHorizontalFill(1)
title9!.setPosition(new java.awt.Point(20,133))
title9!.setText("Cost Center(s)")
title9!.setFont(textfont!)
REM Text for Vendor
title10!=page!.newParagraph()
title10!.setHorizontalFill(1)
title10!.setPosition(new java.awt.Point(18,155))
title10!.setText("Vendor:")
title10!.setFont(textfont!)
REM Text for PO #
title11!=page!.newParagraph()
title11!.setHorizontalFill(1)
title11!.setPosition(new java.awt.Point(18,177))
title11!.setText("PO #:")
title11!.setFont(textfont!)
REM Text for Purpose
title12!=page!.newParagraph()
title12!.setHorizontalFill(1)
title12!.setPosition(new java.awt.Point(242,136))
title12!.setText("Purpose:")
title12!.setFont(textfont!)
REM Text for Contact
title13!=page!.newParagraph()
title13!.setHorizontalFill(1)
title13!.setPosition(new java.awt.Point(287,154))
title13!.setText("Contact:")
title13!.setFont(textfont!)
REM Text for Phone
title14!=page!.newParagraph()
title14!.setHorizontalFill(1)
title14!.setPosition(new java.awt.Point(287,176))
title14!.setText("Phone:")
title14!.setFont(textfont!)
REM Lines
REM Line for Requested By:
titleline1!=page!.newLine()
titleline1!.setRelative(0)
titleline1!.setPosition(new java.awt.Point(272,87))
titleline1!.setEndPoint(new java.awt.Point(439,87))
titleline1!.setThickness(1)
REM Line for Date:
titleline2!=page!.newLine()
titleline2!.setRelative(0)
titleline2!.setPosition(new java.awt.Point(469,87))
titleline2!.setEndPoint(new java.awt.Point(571,87))
titleline2!.setThickness(1)
REM Line for Cost Center(s):
titleline3!=page!.newLine()
titleline3!.setRelative(0)
titleline3!.setPosition(new java.awt.Point(108,166))
titleline3!.setEndPoint(new java.awt.Point(252,166))
titleline3!.setThickness(1)
REM Line for Vendor:
titleline4!=page!.newLine()
titleline4!.setRelative(0)
titleline4!.setPosition(new java.awt.Point(89,186))
titleline4!.setEndPoint(new java.awt.Point(295,186))
titleline4!.setThickness(1)
REM Line for PO #:
titleline5!=page!.newLine()
titleline5!.setRelative(0)
titleline5!.setPosition(new java.awt.Point(89,208))
titleline5!.setEndPoint(new java.awt.Point(295,208))
titleline5!.setThickness(1)
REM Line for Purpose
titleline6!=page!.newLine()
titleline6!.setRelative(0)
titleline6!.setPosition(new java.awt.Point(303,168))
titleline6!.setEndPoint(new java.awt.Point(569,168))
titleline6!.setThickness(1)
REM Line for Contact
titleline7!=page!.newLine()
titleline7!.setRelative(0)
titleline7!.setPosition(new java.awt.Point(360,187))
titleline7!.setEndPoint(new java.awt.Point(569,187))
titleline7!.setThickness(1)
REM Line for Phone
titleline8!=page!.newLine()
titleline8!.setRelative(0)
titleline8!.setPosition(new java.awt.Point(360,209))
titleline8!.setEndPoint(new java.awt.Point(569,209))
titleline8!.setThickness(1)
REM Frames
REM Print Frame for Yes, Issue PO
titleframe1!=page!.newFrame()
titleframe1!.setPosition(new java.awt.Point(90,89))
frame1dimension!=new java.awt.Dimension(8,8)
titleframe1!.setSize(frame1dimension!)
REM Print Frame for No PO Required
titleframe2!=page!.newFrame()
titleframe2!.setPosition(new java.awt.Point(90,104))
frame2dimension!=new java.awt.Dimension(8,8)
titleframe2!.setSize(frame2dimension!)
REM ****************************************
REM GRID SECTION
REM ****************************************
REM Print Frame for Grid Title
gridframe1!=page!.newFrame()
gridframe1!.setPosition(new java.awt.Point(20,202))
frame1dimension!=new java.awt.Dimension(532,20)
gridframe1!.setSize(frame1dimension!)
gridframe2!=page!.newFrame()
gridframe2!.setPosition(new java.awt.Point(20,202))
frame2dimension!=new java.awt.Dimension(532,4)
gridframe2!.setSize(frame2dimension!)
gridframe2!.setFillColor(myAPI!.makeColor("BLACK"))
gridframe3!=page!.newFrame()
gridframe3!.setPosition(new java.awt.Point(20,202))
frame3dimension!=new java.awt.Dimension(5,20)
gridframe3!.setSize(frame3dimension!)
gridframe3!.setFillColor(myAPI!.makeColor("BLACK"))
gridframe4!=page!.newFrame()
gridframe4!.setPosition(new java.awt.Point(20,218))
frame4dimension!=new java.awt.Dimension(532,4)
gridframe4!.setSize(frame4dimension!)
gridframe4!.setFillColor(myAPI!.makeColor("BLACK"))
gridframe5!=page!.newFrame()
gridframe5!.setPosition(new java.awt.Point(206,202))
frame5dimension!=new java.awt.Dimension(179,20)
gridframe5!.setSize(frame5dimension!)
gridframe5!.setFillColor(myAPI!.makeColor("BLACK"))
gridframe6!=page!.newFrame()
gridframe6!.setPosition(new java.awt.Point(409,202))
frame6dimension!=new java.awt.Dimension(27,20)
gridframe6!.setSize(frame6dimension!)
gridframe6!.setFillColor(myAPI!.makeColor("BLACK"))
gridframe7!=page!.newFrame()
gridframe7!.setPosition(new java.awt.Point(463,202))
frame7dimension!=new java.awt.Dimension(36,20)
gridframe7!.setSize(frame7dimension!)
gridframe7!.setFillColor(myAPI!.makeColor("BLACK"))
gridframe8!=page!.newFrame()
gridframe8!.setPosition(new java.awt.Point(525,202))
frame8dimension!=new java.awt.Dimension(28,20)
gridframe8!.setSize(frame8dimension!)
gridframe8!.setFillColor(myAPI!.makeColor("BLACK"))
REM Text for Item #
REM text Grid Descriptions
gridtitle1!=page!.newParagraph()
gridtitle1!.setHorizontalFill(1)
gridtitle1!.setPosition(new java.awt.Point(25,206))
let s!=new java.text.AttributedString("Item Number and/or Description")
s!.addAttribute(java.awt.font.TextAttribute.FONT,new java.awt.Font("Arial",java.awt.Font.BOLD,11))
s!.addAttribute(java.awt.font.TextAttribute.BACKGROUND,java.awt.Color.BLACK)
s!.addAttribute(java.awt.font.TextAttribute.FOREGROUND,java.awt.Color.WHITE)
gridtitle1!.setText(s!)
REM Text for Item Qty
REM text Grid Descriptions
gridtitle2!=page!.newParagraph()
gridtitle2!.setHorizontalFill(1)
gridtitle2!.setPosition(new java.awt.Point(352,206))
let s!=new java.text.AttributedString("Qty ")
s!.addAttribute(java.awt.font.TextAttribute.FONT,new java.awt.Font("Arial",java.awt.Font.BOLD,11))
s!.addAttribute(java.awt.font.TextAttribute.BACKGROUND,java.awt.Color.BLACK)
s!.addAttribute(java.awt.font.TextAttribute.FOREGROUND,java.awt.Color.WHITE)
gridtitle2!.setText(s!)
REM Text for Item Unit
REM text Grid Descriptions
gridtitle3!=page!.newParagraph()
gridtitle3!.setHorizontalFill(1)
gridtitle3!.setPosition(new java.awt.Point(385,206))
let s!=new java.text.AttributedString("Unit ")
s!.addAttribute(java.awt.font.TextAttribute.FONT,new java.awt.Font("Arial",java.awt.Font.BOLD,11))
s!.addAttribute(java.awt.font.TextAttribute.BACKGROUND,java.awt.Color.BLACK)
s!.addAttribute(java.awt.font.TextAttribute.FOREGROUND,java.awt.Color.WHITE)
gridtitle3!.setText(s!)
REM Text for Item Price
REM text Grid Descriptions
gridtitle4!=page!.newParagraph()
gridtitle4!.setHorizontalFill(1)
gridtitle4!.setPosition(new java.awt.Point(436,206))
let s!=new java.text.AttributedString("Price")
s!.addAttribute(java.awt.font.TextAttribute.FONT,new java.awt.Font("Arial",java.awt.Font.BOLD,11))
s!.addAttribute(java.awt.font.TextAttribute.BACKGROUND,java.awt.Color.BLACK)
s!.addAttribute(java.awt.font.TextAttribute.FOREGROUND,java.awt.Color.WHITE)
gridtitle4!.setText(s!)
REM Text for Item Total
REM text Grid Descriptions
gridtitle5!=page!.newParagraph()
gridtitle5!.setHorizontalFill(1)
gridtitle5!.setPosition(new java.awt.Point(499,206))
let s!=new java.text.AttributedString("Total")
s!.addAttribute(java.awt.font.TextAttribute.FONT,new java.awt.Font("Arial",java.awt.Font.BOLD,11))
s!.addAttribute(java.awt.font.TextAttribute.BACKGROUND,java.awt.Color.BLACK)
s!.addAttribute(java.awt.font.TextAttribute.FOREGROUND,java.awt.Color.WHITE)
gridtitle5!.setText(s!)
REM Text for Subtotal
REM text for Item
gridtitle6!=page!.newParagraph()
gridtitle6!.setHorizontalFill(1)
gridtitle6!.setPosition(new java.awt.Point(434,581))
gridtitle6!.setText("SubTotal")
gridtitle6!.setFont(boldfont!)
REM text for Freight
gridtitle7!=page!.newParagraph()
gridtitle7!.setHorizontalFill(1)
gridtitle7!.setPosition(new java.awt.Point(436,601))
gridtitle7!.setText("Freight")
gridtitle7!.setFont(boldfont!)
REM text for Tax
gridtitle8!=page!.newParagraph()
gridtitle8!.setHorizontalFill(1)
gridtitle8!.setPosition(new java.awt.Point(455,621))
gridtitle8!.setText("Tax")
gridtitle8!.setFont(boldfont!)
REM Text for TOTAL
REM text for Item
gridtitle9!=page!.newParagraph()
gridtitle9!.setHorizontalFill(1)
gridtitle9!.setPosition(new java.awt.Point(429,646))
gridtitle9!.setText("T O T A L")
gridtitle9!.setFont(boldfont!)
REM Text for $
gridtitle10!=page!.newParagraph()
gridtitle10!.setHorizontalFill(1)
gridtitle10!.setPosition(new java.awt.Point(491,581))
gridtitle10!.setText("$")
gridtitle10!.setFont(bigboldfont!)
REM text for + freight
gridtitle11!=page!.newParagraph()
gridtitle11!.setHorizontalFill(1)
gridtitle11!.setPosition(new java.awt.Point(491,601))
gridtitle11!.setText("+")
gridtitle11!.setFont(bigboldfont!)
REM text for + tax
gridtitle12!=page!.newParagraph()
gridtitle12!.setHorizontalFill(1)
gridtitle12!.setPosition(new java.awt.Point(491,619))
gridtitle12!.setText("+")
gridtitle12!.setFont(bigboldfont!)
REM Text for $ TOTAL
REM text for Item
gridtitle13!=page!.newParagraph()
gridtitle13!.setHorizontalFill(1)
gridtitle13!.setPosition(new java.awt.Point(491,643))
gridtitle13!.setText("$")
gridtitle13!.setFont(bigboldfont!)
REM Create Horizontal Grid Lines
xbegin=42
xend=573
ybegin=242
yend=242
FOR HLINE= 1 to 17
gridline!=page!.newLine()
gridline!.setRelative(0)
gridline!.setPosition(new java.awt.Point(xbegin,ybegin))
gridline!.setEndPoint(new java.awt.Point(xend,yend))
gridline!.setThickness(1)
page!.add(gridline!)
ybegin=ybegin+22
yend=yend+22
next HLINE
REM Line totals
gridline1!=page!.newLine()
gridline1!.setRelative(0)
gridline1!.setPosition(new java.awt.Point(505,617))
gridline1!.setEndPoint(new java.awt.Point(572,617))
gridline1!.setThickness(1)
gridline2!=page!.newLine()
gridline2!.setRelative(0)
gridline2!.setPosition(new java.awt.Point(505,637))
gridline2!.setEndPoint(new java.awt.Point(572,637))
gridline2!.setThickness(1)
gridline3!=page!.newLine()
gridline3!.setRelative(0)
gridline3!.setPosition(new java.awt.Point(505,657))
gridline3!.setEndPoint(new java.awt.Point(572,657))
gridline3!.setThickness(2)
gridline4!=page!.newLine()
gridline4!.setRelative(0)
gridline4!.setPosition(new java.awt.Point(505,677))
gridline4!.setEndPoint(new java.awt.Point(572,677))
gridline4!.setThickness(1)
gridline5!=page!.newLine()
gridline5!.setRelative(0)
gridline5!.setPosition(new java.awt.Point(504,679))
gridline5!.setEndPoint(new java.awt.Point(573,679))
gridline5!.setThickness(1)
gridline6!=page!.newLine()
gridline6!.setRelative(0)
gridline6!.setPosition(new java.awt.Point(505,595))
gridline6!.setEndPoint(new java.awt.Point(572,595))
gridline6!.setThickness(1)
REM Create Vertical Lines for grid
gridline7!=page!.newLine()
gridline7!.setRelative(0)
gridline7!.setPosition(new java.awt.Point(41,242))
gridline7!.setEndPoint(new java.awt.Point(41,593))
gridline7!.setThickness(1)
gridline8!=page!.newLine()
gridline8!.setRelative(0)
gridline8!.setPosition(new java.awt.Point(366,242))
gridline8!.setEndPoint(new java.awt.Point(366,593))
gridline8!.setThickness(1)
gridline9!=page!.newLine()
gridline9!.setRelative(0)
gridline9!.setPosition(new java.awt.Point(402,242))
gridline9!.setEndPoint(new java.awt.Point(402,593))
gridline9!.setThickness(1)
gridline10!=page!.newLine()
gridline10!.setRelative(0)
gridline10!.setPosition(new java.awt.Point(434,242))
gridline10!.setEndPoint(new java.awt.Point(434,593))
gridline10!.setThickness(1)
gridline11!=page!.newLine()
gridline11!.setRelative(0)
gridline11!.setPosition(new java.awt.Point(504,242))
gridline11!.setEndPoint(new java.awt.Point(504,677))
gridline11!.setThickness(1)
gridline12!=page!.newLine()
gridline12!.setRelative(0)
gridline12!.setPosition(new java.awt.Point(573,242))
gridline12!.setEndPoint(new java.awt.Point(573,677))
gridline12!.setThickness(1)
REM ****************************************
REM Shipping Section
REM ****************************************
REM Text
REM Text for Payment
shippingtext1!=page!.newParagraph()
shippingtext1!.setHorizontalFill(1)
shippingtext1!.setPosition(new java.awt.Point(27,581))
shippingtext1!.setText("Payment")
shippingtext1!.setFont(boldfont!)
REM Text for Bill Us
shippingtext2!=page!.newParagraph()
shippingtext2!.setHorizontalFill(1)
shippingtext2!.setPosition(new java.awt.Point(90,582))
shippingtext2!.setText("Bill Us")
shippingtext2!.setFont(textfont!)
REM Text BASIS Credit Card
shippingtext3!=page!.newParagraph()
shippingtext3!.setHorizontalFill(1)
shippingtext3!.setPosition(new java.awt.Point(144,582))
shippingtext3!.setText("BASIS Credit Card")
shippingtext3!.setFont(textfont!)
REM Text Check Enclosed
shippingtext4!=page!.newParagraph()
shippingtext4!.setHorizontalFill(1)
shippingtext4!.setPosition(new java.awt.Point(254,582))
shippingtext4!.setText("Check Enclosed")
shippingtext4!.setFont(textfont!)
REM Text for Shipping
shippingtext5!=page!.newParagraph()
shippingtext5!.setHorizontalFill(1)
shippingtext5!.setPosition(new java.awt.Point(27,601))
shippingtext5!.setText("Shipping")
shippingtext5!.setFont(boldfont!)
REM Text 1 Day
shippingtext6!=page!.newParagraph()
shippingtext6!.setHorizontalFill(1)
shippingtext6!.setPosition(new java.awt.Point(91,601))
shippingtext6!.setText("1 Day")
shippingtext6!.setFont(textfont!)
REM Text 2 Day
shippingtext7!=page!.newParagraph()
shippingtext7!.setHorizontalFill(1)
shippingtext7!.setPosition(new java.awt.Point(138,601))
shippingtext7!.setText("2 Day")
shippingtext7!.setFont(textfont!)
REM Text Grd
shippingtext8!=page!.newParagraph()
shippingtext8!.setHorizontalFill(1)
shippingtext8!.setPosition(new java.awt.Point(188,601))
shippingtext8!.setText("Grd")
shippingtext8!.setFont(textfont!)
REM Text N/C
shippingtext9!=page!.newParagraph()
shippingtext9!.setHorizontalFill(1)
shippingtext9!.setPosition(new java.awt.Point(225,601))
shippingtext9!.setText("N/C")
shippingtext9!.setFont(textfont!)
REM Text Pickup
shippingtext10!=page!.newParagraph()
shippingtext10!.setHorizontalFill(1)
shippingtext10!.setPosition(new java.awt.Point(255,601))
shippingtext10!.setText("Pickup")
shippingtext10!.setFont(textfont!)
REM Text Deliv
shippingtext11!=page!.newParagraph()
shippingtext11!.setHorizontalFill(1)
shippingtext11!.setPosition(new java.awt.Point(308,601))
shippingtext11!.setText("Deliv")
shippingtext11!.setFont(textfont!)
REM Text Electronic
shippingtext12!=page!.newParagraph()
shippingtext12!.setHorizontalFill(1)
shippingtext12!.setPosition(new java.awt.Point(353,601))
shippingtext12!.setText("Electronic")
shippingtext12!.setFont(textfont!)
REM Text forArrival Date
shippingtext13!=page!.newParagraph()
shippingtext13!.setHorizontalFill(1)
shippingtext13!.setPosition(new java.awt.Point(27,623))
shippingtext13!.setText("Arrivial Date:")
shippingtext13!.setFont(boldfont!)
REM Text for Comments
shippingtext14!=page!.newParagraph()
shippingtext14!.setHorizontalFill(1)
shippingtext14!.setPosition(new java.awt.Point(27,642))
shippingtext14!.setText("Comments:")
shippingtext14!.setFont(boldfont!)
REM LINES
REM Line for Arrivial Date
shippingline1!=page!.newLine()
shippingline1!.setRelative(0)
shippingline1!.setPosition(new java.awt.Point(112,653))
shippingline1!.setEndPoint(new java.awt.Point(421,653))
REM Line for Comments
shippingline2!=page!.newLine()
shippingline2!.setRelative(0)
shippingline2!.setPosition(new java.awt.Point(105,673))
shippingline2!.setEndPoint(new java.awt.Point(421,673))
REM FRAMES
REM Shipping First Frame
shippingframe1!=page!.newFrame()
shippingframe1!.setPosition(new java.awt.Point(20,573))
shippingframe1dimension!=new java.awt.Dimension(393,84)
shippingframe1!.setSize(shippingframe1dimension!)
REM Shipping Second Frame
shippingframe2!=page!.newFrame()
shippingframe2!.setPosition(new java.awt.Point(22,575))
shippingframe2dimension!=new java.awt.Dimension(389,80)
shippingframe2!.setSize(shippingframe2dimension!)
REM Payment Bill us Frame
shippingframe3!=page!.newFrame()
shippingframe3!.setPosition(new java.awt.Point(81,583))
shippingframe3dimension!=new java.awt.Dimension(8,8)
shippingframe3!.setSize(shippingframe3dimension!)
REM BASIS Credit Card Frame
shippingframe4!=page!.newFrame()
shippingframe4!.setPosition(new java.awt.Point(133,583))
shippingframe4dimension!=new java.awt.Dimension(8,8)
shippingframe4!.setSize(shippingframe4dimension!)
REM Check Enclosed Frame
shippingframe5!=page!.newFrame()
shippingframe5!.setPosition(new java.awt.Point(243,583))
shippingframe5dimension!=new java.awt.Dimension(8,8)
shippingframe5!.setSize(shippingframe5dimension!)
REM 1 Day Frame
shippingframe6!=page!.newFrame()
shippingframe6!.setPosition(new java.awt.Point(81,602))
shippingframe6dimension!=new java.awt.Dimension(8,8)
shippingframe6!.setSize(shippingframe6dimension!)
REM 2 Day Frame
shippingframe7!=page!.newFrame()
shippingframe7!.setPosition(new java.awt.Point(128,602))
shippingframe7dimension!=new java.awt.Dimension(8,8)
shippingframe7!.setSize(shippingframe7dimension!)
REM Grd Frame
shippingframe8!=page!.newFrame()
shippingframe8!.setPosition(new java.awt.Point(178,602))
shippingframe8dimension!=new java.awt.Dimension(8,8)
shippingframe8!.setSize(shippingframe8dimension!)
REM N/C Frame
shippingframe9!=page!.newFrame()
shippingframe9!.setPosition(new java.awt.Point(215,602))
shippingframe9dimension!=new java.awt.Dimension(8,8)
shippingframe9!.setSize(shippingframe9dimension!)
REM Pickup Frame
shippingframe10!=page!.newFrame()
shippingframe10!.setPosition(new java.awt.Point(245,602))
shippingframe10dimension!=new java.awt.Dimension(8,8)
shippingframe10!.setSize(shippingframe10dimension!)
REM Check Deliv Frame
shippingframe11!=page!.newFrame()
shippingframe11!.setPosition(new java.awt.Point(298,602))
shippingframe11dimension!=new java.awt.Dimension(8,8)
shippingframe11!.setSize(shippingframe11dimension!)
REM Electronic Frame
shippingframe12!=page!.newFrame()
shippingframe12!.setPosition(new java.awt.Point(343,602))
shippingframe12dimension!=new java.awt.Dimension(8,8)
shippingframe12!.setSize(shippingframe12dimension!)
REM ****************************************
REM Approval SECTION
REM ****************************************
REM TEXT
REM Text for Manager Approval
approvaltext1!=page!.newParagraph()
approvaltext1!.setHorizontalFill(1)
approvaltext1!.setPosition(new java.awt.Point(20,685))
approvaltext1!.setText("Manager Approval:")
approvaltext1!.setFont(textfont!)
REM Text for Finance Approval:
approvaltext2!=page!.newParagraph()
approvaltext2!.setHorizontalFill(1)
approvaltext2!.setPosition(new java.awt.Point(301,685))
approvaltext2!.setText("Finance Approval:")
approvaltext2!.setFont(textfont!)
REM text for Required on all purchases...
approvaltext3!=page!.newParagraph()
approvaltext3!.setHorizontalFill(1)
approvaltext3!.setPosition(new java.awt.Point(392,698))
approvaltext3!.setText("Required on all purchases > $500")
approvaltext3!.setFont(italicfont!)
REM text for Accounting:...
approvaltext4!=page!.newParagraph()
approvaltext4!.setHorizontalFill(1)
approvaltext4!.setPosition(new java.awt.Point(194,734))
approvaltext4!.setText("Accounting: White & Yellow Requisitioner: Pink")
approvaltext4!.setFont(italicfont!)
REM LINES
REM Line for Manager Approval
approvalline1!=page!.newLine()
approvalline1!.setRelative(0)
approvalline1!.setPosition(new java.awt.Point(127,717))
approvalline1!.setEndPoint(new java.awt.Point(312,717))
approvalline1!.setThickness(1)
REM LINES
REM Line for Finance Approval
approvalline2!=page!.newLine()
approvalline2!.setRelative(0)
approvalline2!.setPosition(new java.awt.Point(406,717))
approvalline2!.setEndPoint(new java.awt.Point(573,717))
approvalline2!.setThickness(1)
REM Line forBottom of Page
approvalline3!=page!.newLine()
approvalline3!.setRelative(0)
approvalline3!.setPosition(new java.awt.Point(40,750))
approvalline3!.setEndPoint(new java.awt.Point(573,750))
approvalline3!.setThickness(1)
REM Add Pages
page!.add(image1!)
page!.add(title1!)
page!.add(title2!)
page!.add(title3!)
page!.add(title4!)
page!.add(title5!)
page!.add(title6!)
page!.add(title7!)
page!.add(title8!)
page!.add(title9!)
page!.add(title10!)
page!.add(title11!)
page!.add(title12!)
page!.add(title13!)
page!.add(title14!)
page!.add(titleline1!)
page!.add(titleline2!)
page!.add(titleline3!)
page!.add(titleline4!)
page!.add(titleline5!)
page!.add(titleline6!)
page!.add(titleline7!)
page!.add(titleline8!)
page!.add(titleFrame1!)
page!.add(titleFrame2!)
page!.add(gridtitle1!)
page!.add(gridtitle2!)
page!.add(gridtitle3!)
page!.add(gridtitle4!)
page!.add(gridtitle5!)
page!.add(gridtitle6!)
page!.add(gridtitle7!)
page!.add(gridtitle8!)
page!.add(gridtitle9!)
page!.add(gridtitle10!)
page!.add(gridtitle11!)
page!.add(gridtitle12!)
page!.add(gridtitle13!)
page!.add(gridframe1!)
page!.add(gridframe2!)
page!.add(gridframe3!)
page!.add(gridframe4!)
page!.add(gridframe5!)
page!.add(gridframe6!)
page!.add(gridframe7!)
page!.add(gridframe8!)
page!.add(gridline1!)
page!.add(gridline2!)
page!.add(gridline3!)
page!.add(gridline4!)
page!.add(gridline5!)
page!.add(gridline6!)
page!.add(gridline7!)
page!.add(gridline8!)
page!.add(gridline9!)
page!.add(gridline10!)
page!.add(gridline11!)
page!.add(gridline12!)
page!.add(shippingtext1!)
page!.add(shippingtext2!)
page!.add(shippingtext3!)
page!.add(shippingtext4!)
page!.add(shippingtext5!)
page!.add(shippingtext6!)
page!.add(shippingtext7!)
page!.add(shippingtext8!)
page!.add(shippingtext9!)
page!.add(shippingtext10!)
page!.add(shippingtext11!)
page!.add(shippingtext12!)
page!.add(shippingtext13!)
page!.add(shippingtext14!)
page!.add(shippingline1!)
page!.add(shippingline2!)
page!.add(shippingframe1!)
page!.add(shippingframe2!)
page!.add(shippingframe3!)
page!.add(shippingframe4!)
page!.add(shippingframe5!)
page!.add(shippingframe6!)
page!.add(shippingframe7!)
page!.add(shippingframe8!)
page!.add(shippingframe9!)
page!.add(shippingframe10!)
page!.add(shippingframe11!)
page!.add(shippingframe12!)
page!.add(approvaltext1!)
page!.add(approvaltext2!)
page!.add(approvaltext3!)
page!.add(approvaltext4!)
page!.add(approvalline1!)
page!.add(approvalline2!)
page!.add(approvalline3!)
REM Preview the Page
doc!.preview()
release
REM This sample uses the BBj Print Object to create a BASIS Purchase Requisition form
REM Set PrintRequest attributes for print job
REM Obtain the instance to the BBjAPI object
myAPI!=BBjAPI()
REM Obtain an instance of a default BBjPrinter object
LET myBBjPrinter!=myAPI!.getBBjPrinter(1)
REM Create Fonts Needed
let textfont!= new java.awt.Font("Arial",java.awt.Font.PLAIN,10)
let boldfont!=new java.awt.Font("Arial",java.awt.Font.BOLD,10)
let bigboldfont!=new java.awt.Font("Arial",java.awt.Font.BOLD,12)
let largefont!=new java.awt.Font("Times New Roman",java.awt.Font.BOLD,24)
let italicFont!=new java.awt.Font("Times New Roman",java.awt.Font.ITALIC,10)
REM Create Colors Needed
black!=new java.awt.Color(black)
white!=new java.awt.Color(white)
REM Create a set of request attributes
LET requestAttributes!=new javax.print.attribute.HashPrintRequestAttributeSet()
requestAttributes!.add(javax.print.attribute.standard.MediaSizeName.NA_LETTER)
requestAttributes!.add(javax.print.attribute.standard.OrientationRequested.PORTRAIT)
units=javax.print.attribute.standard.MediaPrintableArea.INCH
x!=new java.lang.Float(0.3).floatValue()
y!=new java.lang.Float(0.3).floatValue()
w!=new java.lang.Float(7.9).floatValue()
h!=new java.lang.Float(10.4).floatValue()
a!=new javax.print.attribute.standard.MediaPrintableArea(x!,y!,w!,h!,units)
requestAttributes!.add(a!)
myBBjPrinter!.setAttributes(requestAttributes!)
doc!=myBBjPrinter!.getForm(0)
page!=doc!.createPage()
REM ****************************************
REM TITLE SECTION
REM ****************************************
REM Image
image1!=page!.newImage()
image1!.setURL("file:c:\bbxprograms\basislogo.gif")
image1!.setPosition(new java.awt.Point(0,0))
image1!.setWidth(185)
image1!.setHeight(68)
REM Text
title1!=page!.newParagraph()
title1!.setHorizontalFill(1)
title1!.setPosition(new java.awt.Point(320,10))
title1!.setText("Purchase Requisition")
title1!.setFont(largefont!)
REM Text for Requested By:
title2!=page!.newParagraph()
title2!.setHorizontalFill(1)
title2!.setPosition(new java.awt.Point(180,56))
title2!.setText("Requested By:")
title2!.setFont(textfont!)
REM Text for Date:
title3!=page!.newParagraph()
title3!.setHorizontalFill(1)
title3!.setPosition(new java.awt.Point(425,56))
title3!.setText("Date:")
title3!.setFont(textfont!)
REM Text for Choose one:
title4!=page!.newParagraph()
title4!.setHorizontalFill(1)
title4!.setPosition(new java.awt.Point(20,86))
title4!.setText("Choose one:")
title4!.setFont(textfont!)
REM Text for Yes, issue PO
title5!=page!.newParagraph()
title5!.setHorizontalFill(1)
title5!.setPosition(new java.awt.Point(100,87))
title5!.setText("Yes, issue PO")
title5!.setFont(textfont!)
REM Text for No PO required
title6!=page!.newParagraph()
title6!.setHorizontalFill(1)
title6!.setPosition(new java.awt.Point(100,102))
title6!.setText("No PO required")
title6!.setFont(textfont!)
REM Text for Items(s) will be received....
title7!=page!.newParagraph()
title7!.setHorizontalFill(1)
title7!.setPosition(new java.awt.Point(200,86))
title7!.setText("Item(s) will be received in Shipping & Receiving OR vendor requires a Purchase Order")
title7!.setFont(italicfont!)
REM Text for This is approval backup...
title8!=page!.newParagraph()
title8!.setHorizontalFill(1)
title8!.setPosition(new java.awt.Point(200,101))
title8!.setText("This is approval backup for the purchase; no items will be received")
title8!.setFont(italicfont!)
REM Text for Cost Center(s)
title9!=page!.newParagraph()
title9!.setHorizontalFill(1)
title9!.setPosition(new java.awt.Point(20,133))
title9!.setText("Cost Center(s)")
title9!.setFont(textfont!)
REM Text for Vendor
title10!=page!.newParagraph()
title10!.setHorizontalFill(1)
title10!.setPosition(new java.awt.Point(18,155))
title10!.setText("Vendor:")
title10!.setFont(textfont!)
REM Text for PO #
title11!=page!.newParagraph()
title11!.setHorizontalFill(1)
title11!.setPosition(new java.awt.Point(18,177))
title11!.setText("PO #:")
title11!.setFont(textfont!)
REM Text for Purpose
title12!=page!.newParagraph()
title12!.setHorizontalFill(1)
title12!.setPosition(new java.awt.Point(242,136))
title12!.setText("Purpose:")
title12!.setFont(textfont!)
REM Text for Contact
title13!=page!.newParagraph()
title13!.setHorizontalFill(1)
title13!.setPosition(new java.awt.Point(287,154))
title13!.setText("Contact:")
title13!.setFont(textfont!)
REM Text for Phone
title14!=page!.newParagraph()
title14!.setHorizontalFill(1)
title14!.setPosition(new java.awt.Point(287,176))
title14!.setText("Phone:")
title14!.setFont(textfont!)
REM Lines
REM Line for Requested By:
titleline1!=page!.newLine()
titleline1!.setRelative(0)
titleline1!.setPosition(new java.awt.Point(272,87))
titleline1!.setEndPoint(new java.awt.Point(439,87))
titleline1!.setThickness(1)
REM Line for Date:
titleline2!=page!.newLine()
titleline2!.setRelative(0)
titleline2!.setPosition(new java.awt.Point(469,87))
titleline2!.setEndPoint(new java.awt.Point(571,87))
titleline2!.setThickness(1)
REM Line for Cost Center(s):
titleline3!=page!.newLine()
titleline3!.setRelative(0)
titleline3!.setPosition(new java.awt.Point(108,166))
titleline3!.setEndPoint(new java.awt.Point(252,166))
titleline3!.setThickness(1)
REM Line for Vendor:
titleline4!=page!.newLine()
titleline4!.setRelative(0)
titleline4!.setPosition(new java.awt.Point(89,186))
titleline4!.setEndPoint(new java.awt.Point(295,186))
titleline4!.setThickness(1)
REM Line for PO #:
titleline5!=page!.newLine()
titleline5!.setRelative(0)
titleline5!.setPosition(new java.awt.Point(89,208))
titleline5!.setEndPoint(new java.awt.Point(295,208))
titleline5!.setThickness(1)
REM Line for Purpose
titleline6!=page!.newLine()
titleline6!.setRelative(0)
titleline6!.setPosition(new java.awt.Point(303,168))
titleline6!.setEndPoint(new java.awt.Point(569,168))
titleline6!.setThickness(1)
REM Line for Contact
titleline7!=page!.newLine()
titleline7!.setRelative(0)
titleline7!.setPosition(new java.awt.Point(360,187))
titleline7!.setEndPoint(new java.awt.Point(569,187))
titleline7!.setThickness(1)
REM Line for Phone
titleline8!=page!.newLine()
titleline8!.setRelative(0)
titleline8!.setPosition(new java.awt.Point(360,209))
titleline8!.setEndPoint(new java.awt.Point(569,209))
titleline8!.setThickness(1)
REM Frames
REM Print Frame for Yes, Issue PO
titleframe1!=page!.newFrame()
titleframe1!.setPosition(new java.awt.Point(90,89))
frame1dimension!=new java.awt.Dimension(8,8)
titleframe1!.setSize(frame1dimension!)
REM Print Frame for No PO Required
titleframe2!=page!.newFrame()
titleframe2!.setPosition(new java.awt.Point(90,104))
frame2dimension!=new java.awt.Dimension(8,8)
titleframe2!.setSize(frame2dimension!)
REM ****************************************
REM GRID SECTION
REM ****************************************
REM Print Frame for Grid Title
gridframe1!=page!.newFrame()
gridframe1!.setPosition(new java.awt.Point(20,202))
frame1dimension!=new java.awt.Dimension(532,20)
gridframe1!.setSize(frame1dimension!)
gridframe2!=page!.newFrame()
gridframe2!.setPosition(new java.awt.Point(20,202))
frame2dimension!=new java.awt.Dimension(532,4)
gridframe2!.setSize(frame2dimension!)
gridframe2!.setFillColor(myAPI!.makeColor("BLACK"))
gridframe3!=page!.newFrame()
gridframe3!.setPosition(new java.awt.Point(20,202))
frame3dimension!=new java.awt.Dimension(5,20)
gridframe3!.setSize(frame3dimension!)
gridframe3!.setFillColor(myAPI!.makeColor("BLACK"))
gridframe4!=page!.newFrame()
gridframe4!.setPosition(new java.awt.Point(20,218))
frame4dimension!=new java.awt.Dimension(532,4)
gridframe4!.setSize(frame4dimension!)
gridframe4!.setFillColor(myAPI!.makeColor("BLACK"))
gridframe5!=page!.newFrame()
gridframe5!.setPosition(new java.awt.Point(206,202))
frame5dimension!=new java.awt.Dimension(179,20)
gridframe5!.setSize(frame5dimension!)
gridframe5!.setFillColor(myAPI!.makeColor("BLACK"))
gridframe6!=page!.newFrame()
gridframe6!.setPosition(new java.awt.Point(409,202))
frame6dimension!=new java.awt.Dimension(27,20)
gridframe6!.setSize(frame6dimension!)
gridframe6!.setFillColor(myAPI!.makeColor("BLACK"))
gridframe7!=page!.newFrame()
gridframe7!.setPosition(new java.awt.Point(463,202))
frame7dimension!=new java.awt.Dimension(36,20)
gridframe7!.setSize(frame7dimension!)
gridframe7!.setFillColor(myAPI!.makeColor("BLACK"))
gridframe8!=page!.newFrame()
gridframe8!.setPosition(new java.awt.Point(525,202))
frame8dimension!=new java.awt.Dimension(28,20)
gridframe8!.setSize(frame8dimension!)
gridframe8!.setFillColor(myAPI!.makeColor("BLACK"))
REM Text for Item #
REM text Grid Descriptions
gridtitle1!=page!.newParagraph()
gridtitle1!.setHorizontalFill(1)
gridtitle1!.setPosition(new java.awt.Point(25,206))
let s!=new java.text.AttributedString("Item Number and/or Description")
s!.addAttribute(java.awt.font.TextAttribute.FONT,new java.awt.Font("Arial",java.awt.Font.BOLD,11))
s!.addAttribute(java.awt.font.TextAttribute.BACKGROUND,java.awt.Color.BLACK)
s!.addAttribute(java.awt.font.TextAttribute.FOREGROUND,java.awt.Color.WHITE)
gridtitle1!.setText(s!)
REM Text for Item Qty
REM text Grid Descriptions
gridtitle2!=page!.newParagraph()
gridtitle2!.setHorizontalFill(1)
gridtitle2!.setPosition(new java.awt.Point(352,206))
let s!=new java.text.AttributedString("Qty ")
s!.addAttribute(java.awt.font.TextAttribute.FONT,new java.awt.Font("Arial",java.awt.Font.BOLD,11))
s!.addAttribute(java.awt.font.TextAttribute.BACKGROUND,java.awt.Color.BLACK)
s!.addAttribute(java.awt.font.TextAttribute.FOREGROUND,java.awt.Color.WHITE)
gridtitle2!.setText(s!)
REM Text for Item Unit
REM text Grid Descriptions
gridtitle3!=page!.newParagraph()
gridtitle3!.setHorizontalFill(1)
gridtitle3!.setPosition(new java.awt.Point(385,206))
let s!=new java.text.AttributedString("Unit ")
s!.addAttribute(java.awt.font.TextAttribute.FONT,new java.awt.Font("Arial",java.awt.Font.BOLD,11))
s!.addAttribute(java.awt.font.TextAttribute.BACKGROUND,java.awt.Color.BLACK)
s!.addAttribute(java.awt.font.TextAttribute.FOREGROUND,java.awt.Color.WHITE)
gridtitle3!.setText(s!)
REM Text for Item Price
REM text Grid Descriptions
gridtitle4!=page!.newParagraph()
gridtitle4!.setHorizontalFill(1)
gridtitle4!.setPosition(new java.awt.Point(436,206))
let s!=new java.text.AttributedString("Price")
s!.addAttribute(java.awt.font.TextAttribute.FONT,new java.awt.Font("Arial",java.awt.Font.BOLD,11))
s!.addAttribute(java.awt.font.TextAttribute.BACKGROUND,java.awt.Color.BLACK)
s!.addAttribute(java.awt.font.TextAttribute.FOREGROUND,java.awt.Color.WHITE)
gridtitle4!.setText(s!)
REM Text for Item Total
REM text Grid Descriptions
gridtitle5!=page!.newParagraph()
gridtitle5!.setHorizontalFill(1)
gridtitle5!.setPosition(new java.awt.Point(499,206))
let s!=new java.text.AttributedString("Total")
s!.addAttribute(java.awt.font.TextAttribute.FONT,new java.awt.Font("Arial",java.awt.Font.BOLD,11))
s!.addAttribute(java.awt.font.TextAttribute.BACKGROUND,java.awt.Color.BLACK)
s!.addAttribute(java.awt.font.TextAttribute.FOREGROUND,java.awt.Color.WHITE)
gridtitle5!.setText(s!)
REM Text for Subtotal
REM text for Item
gridtitle6!=page!.newParagraph()
gridtitle6!.setHorizontalFill(1)
gridtitle6!.setPosition(new java.awt.Point(434,581))
gridtitle6!.setText("SubTotal")
gridtitle6!.setFont(boldfont!)
REM text for Freight
gridtitle7!=page!.newParagraph()
gridtitle7!.setHorizontalFill(1)
gridtitle7!.setPosition(new java.awt.Point(436,601))
gridtitle7!.setText("Freight")
gridtitle7!.setFont(boldfont!)
REM text for Tax
gridtitle8!=page!.newParagraph()
gridtitle8!.setHorizontalFill(1)
gridtitle8!.setPosition(new java.awt.Point(455,621))
gridtitle8!.setText("Tax")
gridtitle8!.setFont(boldfont!)
REM Text for TOTAL
REM text for Item
gridtitle9!=page!.newParagraph()
gridtitle9!.setHorizontalFill(1)
gridtitle9!.setPosition(new java.awt.Point(429,646))
gridtitle9!.setText("T O T A L")
gridtitle9!.setFont(boldfont!)
REM Text for $
gridtitle10!=page!.newParagraph()
gridtitle10!.setHorizontalFill(1)
gridtitle10!.setPosition(new java.awt.Point(491,581))
gridtitle10!.setText("$")
gridtitle10!.setFont(bigboldfont!)
REM text for + freight
gridtitle11!=page!.newParagraph()
gridtitle11!.setHorizontalFill(1)
gridtitle11!.setPosition(new java.awt.Point(491,601))
gridtitle11!.setText("+")
gridtitle11!.setFont(bigboldfont!)
REM text for + tax
gridtitle12!=page!.newParagraph()
gridtitle12!.setHorizontalFill(1)
gridtitle12!.setPosition(new java.awt.Point(491,619))
gridtitle12!.setText("+")
gridtitle12!.setFont(bigboldfont!)
REM Text for $ TOTAL
REM text for Item
gridtitle13!=page!.newParagraph()
gridtitle13!.setHorizontalFill(1)
gridtitle13!.setPosition(new java.awt.Point(491,643))
gridtitle13!.setText("$")
gridtitle13!.setFont(bigboldfont!)
REM Create Horizontal Grid Lines
xbegin=42
xend=573
ybegin=242
yend=242
FOR HLINE= 1 to 17
gridline!=page!.newLine()
gridline!.setRelative(0)
gridline!.setPosition(new java.awt.Point(xbegin,ybegin))
gridline!.setEndPoint(new java.awt.Point(xend,yend))
gridline!.setThickness(1)
page!.add(gridline!)
ybegin=ybegin+22
yend=yend+22
next HLINE
REM Line totals
gridline1!=page!.newLine()
gridline1!.setRelative(0)
gridline1!.setPosition(new java.awt.Point(505,617))
gridline1!.setEndPoint(new java.awt.Point(572,617))
gridline1!.setThickness(1)
gridline2!=page!.newLine()
gridline2!.setRelative(0)
gridline2!.setPosition(new java.awt.Point(505,637))
gridline2!.setEndPoint(new java.awt.Point(572,637))
gridline2!.setThickness(1)
gridline3!=page!.newLine()
gridline3!.setRelative(0)
gridline3!.setPosition(new java.awt.Point(505,657))
gridline3!.setEndPoint(new java.awt.Point(572,657))
gridline3!.setThickness(2)
gridline4!=page!.newLine()
gridline4!.setRelative(0)
gridline4!.setPosition(new java.awt.Point(505,677))
gridline4!.setEndPoint(new java.awt.Point(572,677))
gridline4!.setThickness(1)
gridline5!=page!.newLine()
gridline5!.setRelative(0)
gridline5!.setPosition(new java.awt.Point(504,679))
gridline5!.setEndPoint(new java.awt.Point(573,679))
gridline5!.setThickness(1)
gridline6!=page!.newLine()
gridline6!.setRelative(0)
gridline6!.setPosition(new java.awt.Point(505,595))
gridline6!.setEndPoint(new java.awt.Point(572,595))
gridline6!.setThickness(1)
REM Create Vertical Lines for grid
gridline7!=page!.newLine()
gridline7!.setRelative(0)
gridline7!.setPosition(new java.awt.Point(41,242))
gridline7!.setEndPoint(new java.awt.Point(41,593))
gridline7!.setThickness(1)
gridline8!=page!.newLine()
gridline8!.setRelative(0)
gridline8!.setPosition(new java.awt.Point(366,242))
gridline8!.setEndPoint(new java.awt.Point(366,593))
gridline8!.setThickness(1)
gridline9!=page!.newLine()
gridline9!.setRelative(0)
gridline9!.setPosition(new java.awt.Point(402,242))
gridline9!.setEndPoint(new java.awt.Point(402,593))
gridline9!.setThickness(1)
gridline10!=page!.newLine()
gridline10!.setRelative(0)
gridline10!.setPosition(new java.awt.Point(434,242))
gridline10!.setEndPoint(new java.awt.Point(434,593))
gridline10!.setThickness(1)
gridline11!=page!.newLine()
gridline11!.setRelative(0)
gridline11!.setPosition(new java.awt.Point(504,242))
gridline11!.setEndPoint(new java.awt.Point(504,677))
gridline11!.setThickness(1)
gridline12!=page!.newLine()
gridline12!.setRelative(0)
gridline12!.setPosition(new java.awt.Point(573,242))
gridline12!.setEndPoint(new java.awt.Point(573,677))
gridline12!.setThickness(1)
REM ****************************************
REM Shipping Section
REM ****************************************
REM Text
REM Text for Payment
shippingtext1!=page!.newParagraph()
shippingtext1!.setHorizontalFill(1)
shippingtext1!.setPosition(new java.awt.Point(27,581))
shippingtext1!.setText("Payment")
shippingtext1!.setFont(boldfont!)
REM Text for Bill Us
shippingtext2!=page!.newParagraph()
shippingtext2!.setHorizontalFill(1)
shippingtext2!.setPosition(new java.awt.Point(90,582))
shippingtext2!.setText("Bill Us")
shippingtext2!.setFont(textfont!)
REM Text BASIS Credit Card
shippingtext3!=page!.newParagraph()
shippingtext3!.setHorizontalFill(1)
shippingtext3!.setPosition(new java.awt.Point(144,582))
shippingtext3!.setText("BASIS Credit Card")
shippingtext3!.setFont(textfont!)
REM Text Check Enclosed
shippingtext4!=page!.newParagraph()
shippingtext4!.setHorizontalFill(1)
shippingtext4!.setPosition(new java.awt.Point(254,582))
shippingtext4!.setText("Check Enclosed")
shippingtext4!.setFont(textfont!)
REM Text for Shipping
shippingtext5!=page!.newParagraph()
shippingtext5!.setHorizontalFill(1)
shippingtext5!.setPosition(new java.awt.Point(27,601))
shippingtext5!.setText("Shipping")
shippingtext5!.setFont(boldfont!)
REM Text 1 Day
shippingtext6!=page!.newParagraph()
shippingtext6!.setHorizontalFill(1)
shippingtext6!.setPosition(new java.awt.Point(91,601))
shippingtext6!.setText("1 Day")
shippingtext6!.setFont(textfont!)
REM Text 2 Day
shippingtext7!=page!.newParagraph()
shippingtext7!.setHorizontalFill(1)
shippingtext7!.setPosition(new java.awt.Point(138,601))
shippingtext7!.setText("2 Day")
shippingtext7!.setFont(textfont!)
REM Text Grd
shippingtext8!=page!.newParagraph()
shippingtext8!.setHorizontalFill(1)
shippingtext8!.setPosition(new java.awt.Point(188,601))
shippingtext8!.setText("Grd")
shippingtext8!.setFont(textfont!)
REM Text N/C
shippingtext9!=page!.newParagraph()
shippingtext9!.setHorizontalFill(1)
shippingtext9!.setPosition(new java.awt.Point(225,601))
shippingtext9!.setText("N/C")
shippingtext9!.setFont(textfont!)
REM Text Pickup
shippingtext10!=page!.newParagraph()
shippingtext10!.setHorizontalFill(1)
shippingtext10!.setPosition(new java.awt.Point(255,601))
shippingtext10!.setText("Pickup")
shippingtext10!.setFont(textfont!)
REM Text Deliv
shippingtext11!=page!.newParagraph()
shippingtext11!.setHorizontalFill(1)
shippingtext11!.setPosition(new java.awt.Point(308,601))
shippingtext11!.setText("Deliv")
shippingtext11!.setFont(textfont!)
REM Text Electronic
shippingtext12!=page!.newParagraph()
shippingtext12!.setHorizontalFill(1)
shippingtext12!.setPosition(new java.awt.Point(353,601))
shippingtext12!.setText("Electronic")
shippingtext12!.setFont(textfont!)
REM Text forArrival Date
shippingtext13!=page!.newParagraph()
shippingtext13!.setHorizontalFill(1)
shippingtext13!.setPosition(new java.awt.Point(27,623))
shippingtext13!.setText("Arrivial Date:")
shippingtext13!.setFont(boldfont!)
REM Text for Comments
shippingtext14!=page!.newParagraph()
shippingtext14!.setHorizontalFill(1)
shippingtext14!.setPosition(new java.awt.Point(27,642))
shippingtext14!.setText("Comments:")
shippingtext14!.setFont(boldfont!)
REM LINES
REM Line for Arrivial Date
shippingline1!=page!.newLine()
shippingline1!.setRelative(0)
shippingline1!.setPosition(new java.awt.Point(112,653))
shippingline1!.setEndPoint(new java.awt.Point(421,653))
REM Line for Comments
shippingline2!=page!.newLine()
shippingline2!.setRelative(0)
shippingline2!.setPosition(new java.awt.Point(105,673))
shippingline2!.setEndPoint(new java.awt.Point(421,673))
REM FRAMES
REM Shipping First Frame
shippingframe1!=page!.newFrame()
shippingframe1!.setPosition(new java.awt.Point(20,573))
shippingframe1dimension!=new java.awt.Dimension(393,84)
shippingframe1!.setSize(shippingframe1dimension!)
REM Shipping Second Frame
shippingframe2!=page!.newFrame()
shippingframe2!.setPosition(new java.awt.Point(22,575))
shippingframe2dimension!=new java.awt.Dimension(389,80)
shippingframe2!.setSize(shippingframe2dimension!)
REM Payment Bill us Frame
shippingframe3!=page!.newFrame()
shippingframe3!.setPosition(new java.awt.Point(81,583))
shippingframe3dimension!=new java.awt.Dimension(8,8)
shippingframe3!.setSize(shippingframe3dimension!)
REM BASIS Credit Card Frame
shippingframe4!=page!.newFrame()
shippingframe4!.setPosition(new java.awt.Point(133,583))
shippingframe4dimension!=new java.awt.Dimension(8,8)
shippingframe4!.setSize(shippingframe4dimension!)
REM Check Enclosed Frame
shippingframe5!=page!.newFrame()
shippingframe5!.setPosition(new java.awt.Point(243,583))
shippingframe5dimension!=new java.awt.Dimension(8,8)
shippingframe5!.setSize(shippingframe5dimension!)
REM 1 Day Frame
shippingframe6!=page!.newFrame()
shippingframe6!.setPosition(new java.awt.Point(81,602))
shippingframe6dimension!=new java.awt.Dimension(8,8)
shippingframe6!.setSize(shippingframe6dimension!)
REM 2 Day Frame
shippingframe7!=page!.newFrame()
shippingframe7!.setPosition(new java.awt.Point(128,602))
shippingframe7dimension!=new java.awt.Dimension(8,8)
shippingframe7!.setSize(shippingframe7dimension!)
REM Grd Frame
shippingframe8!=page!.newFrame()
shippingframe8!.setPosition(new java.awt.Point(178,602))
shippingframe8dimension!=new java.awt.Dimension(8,8)
shippingframe8!.setSize(shippingframe8dimension!)
REM N/C Frame
shippingframe9!=page!.newFrame()
shippingframe9!.setPosition(new java.awt.Point(215,602))
shippingframe9dimension!=new java.awt.Dimension(8,8)
shippingframe9!.setSize(shippingframe9dimension!)
REM Pickup Frame
shippingframe10!=page!.newFrame()
shippingframe10!.setPosition(new java.awt.Point(245,602))
shippingframe10dimension!=new java.awt.Dimension(8,8)
shippingframe10!.setSize(shippingframe10dimension!)
REM Check Deliv Frame
shippingframe11!=page!.newFrame()
shippingframe11!.setPosition(new java.awt.Point(298,602))
shippingframe11dimension!=new java.awt.Dimension(8,8)
shippingframe11!.setSize(shippingframe11dimension!)
REM Electronic Frame
shippingframe12!=page!.newFrame()
shippingframe12!.setPosition(new java.awt.Point(343,602))
shippingframe12dimension!=new java.awt.Dimension(8,8)
shippingframe12!.setSize(shippingframe12dimension!)
REM ****************************************
REM Approval SECTION
REM ****************************************
REM TEXT
REM Text for Manager Approval
approvaltext1!=page!.newParagraph()
approvaltext1!.setHorizontalFill(1)
approvaltext1!.setPosition(new java.awt.Point(20,685))
approvaltext1!.setText("Manager Approval:")
approvaltext1!.setFont(textfont!)
REM Text for Finance Approval:
approvaltext2!=page!.newParagraph()
approvaltext2!.setHorizontalFill(1)
approvaltext2!.setPosition(new java.awt.Point(301,685))
approvaltext2!.setText("Finance Approval:")
approvaltext2!.setFont(textfont!)
REM text for Required on all purchases...
approvaltext3!=page!.newParagraph()
approvaltext3!.setHorizontalFill(1)
approvaltext3!.setPosition(new java.awt.Point(392,698))
approvaltext3!.setText("Required on all purchases > $500")
approvaltext3!.setFont(italicfont!)
REM text for Accounting:...
approvaltext4!=page!.newParagraph()
approvaltext4!.setHorizontalFill(1)
approvaltext4!.setPosition(new java.awt.Point(194,734))
approvaltext4!.setText("Accounting: White & Yellow Requisitioner: Pink")
approvaltext4!.setFont(italicfont!)
REM LINES
REM Line for Manager Approval
approvalline1!=page!.newLine()
approvalline1!.setRelative(0)
approvalline1!.setPosition(new java.awt.Point(127,717))
approvalline1!.setEndPoint(new java.awt.Point(312,717))
approvalline1!.setThickness(1)
REM LINES
REM Line for Finance Approval
approvalline2!=page!.newLine()
approvalline2!.setRelative(0)
approvalline2!.setPosition(new java.awt.Point(406,717))
approvalline2!.setEndPoint(new java.awt.Point(573,717))
approvalline2!.setThickness(1)
REM Line forBottom of Page
approvalline3!=page!.newLine()
approvalline3!.setRelative(0)
approvalline3!.setPosition(new java.awt.Point(40,750))
approvalline3!.setEndPoint(new java.awt.Point(573,750))
approvalline3!.setThickness(1)
REM Add Pages
page!.add(image1!)
page!.add(title1!)
page!.add(title2!)
page!.add(title3!)
page!.add(title4!)
page!.add(title5!)
page!.add(title6!)
page!.add(title7!)
page!.add(title8!)
page!.add(title9!)
page!.add(title10!)
page!.add(title11!)
page!.add(title12!)
page!.add(title13!)
page!.add(title14!)
page!.add(titleline1!)
page!.add(titleline2!)
page!.add(titleline3!)
page!.add(titleline4!)
page!.add(titleline5!)
page!.add(titleline6!)
page!.add(titleline7!)
page!.add(titleline8!)
page!.add(titleFrame1!)
page!.add(titleFrame2!)
page!.add(gridtitle1!)
page!.add(gridtitle2!)
page!.add(gridtitle3!)
page!.add(gridtitle4!)
page!.add(gridtitle5!)
page!.add(gridtitle6!)
page!.add(gridtitle7!)
page!.add(gridtitle8!)
page!.add(gridtitle9!)
page!.add(gridtitle10!)
page!.add(gridtitle11!)
page!.add(gridtitle12!)
page!.add(gridtitle13!)
page!.add(gridframe1!)
page!.add(gridframe2!)
page!.add(gridframe3!)
page!.add(gridframe4!)
page!.add(gridframe5!)
page!.add(gridframe6!)
page!.add(gridframe7!)
page!.add(gridframe8!)
page!.add(gridline1!)
page!.add(gridline2!)
page!.add(gridline3!)
page!.add(gridline4!)
page!.add(gridline5!)
page!.add(gridline6!)
page!.add(gridline7!)
page!.add(gridline8!)
page!.add(gridline9!)
page!.add(gridline10!)
page!.add(gridline11!)
page!.add(gridline12!)
page!.add(shippingtext1!)
page!.add(shippingtext2!)
page!.add(shippingtext3!)
page!.add(shippingtext4!)
page!.add(shippingtext5!)
page!.add(shippingtext6!)
page!.add(shippingtext7!)
page!.add(shippingtext8!)
page!.add(shippingtext9!)
page!.add(shippingtext10!)
page!.add(shippingtext11!)
page!.add(shippingtext12!)
page!.add(shippingtext13!)
page!.add(shippingtext14!)
page!.add(shippingline1!)
page!.add(shippingline2!)
page!.add(shippingframe1!)
page!.add(shippingframe2!)
page!.add(shippingframe3!)
page!.add(shippingframe4!)
page!.add(shippingframe5!)
page!.add(shippingframe6!)
page!.add(shippingframe7!)
page!.add(shippingframe8!)
page!.add(shippingframe9!)
page!.add(shippingframe10!)
page!.add(shippingframe11!)
page!.add(shippingframe12!)
page!.add(approvaltext1!)
page!.add(approvaltext2!)
page!.add(approvaltext3!)
page!.add(approvaltext4!)
page!.add(approvalline1!)
page!.add(approvalline2!)
page!.add(approvalline3!)
REM Preview the Page
doc!.preview()
release