requiredMethod("getPrinter()");
int propIdx = 0 ;
while (!"PaperOrientation".equals(the_printer[propIdx].Name)) {
propIdx++ ;
}
PaperOrientation newVal = null ;
if (the_printer[propIdx].Value == PaperOrientation.PORTRAIT)
newVal = PaperOrientation.LANDSCAPE ;
else
newVal = PaperOrientation.PORTRAIT ;