hi :) Thanks for the Reply, here is my code: Please help.....
[code] <?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" backgroundGradientColors="[#dbdbdb, #808080]" layout="absolute" clipContent="false"> <mx:Script> <![CDATA[ import mx.events.*; import mx.controls.*; import mx.printing.*; //Click event handler for the main button. public function clickHandler():void { var selectedItem:String = lstGen.selectedItem.data.toString (); myViewStack.selectedChild=this[selectedItem]; } public function doPrint():void { // var p:PrintJob = new PrintJob; //for flex 1.5 var p:FlexPrintJob = new FlexPrintJob; //for flex 2.0 if (p.start() != true) { return; } p.addObject(tTest2, FlexPrintJobScaleType.SHOW_ALL); p.send(); } ]]> </mx:Script> <mx:Style> Accordion { headerStyleName: "myaccordionHeader"; } .myaccordionHeader { letterSpacing: 2; color: #004080; fontFamily: Times New Roman; fontSize: 16; fontWeight: bold; } </mx:Style> <mx:Model id="General" > <states> <state label="Small Q?" data="q_1"/> <state label="Large Q?" data="q_2"/> </states> </mx:Model> <mx:VBox horizontalCenter="0" verticalCenter="-6" width="100%" height="90%" verticalAlign="middle" horizontalAlign="center"> <mx:Label y="21" text="DSBS Help Menu" textAlign="center" fontWeight="bold" fontSize="26" horizontalCenter="0" color="#004080" fontFamily="Times New Roman"/> <mx:Panel width="70%" height="70%" layout="absolute" horizontalCenter="-0.5" verticalCenter="-24" id="panel1" fontSize="12"> <mx:HDividedBox width="100%" height="100%"> <mx:VBox height="100%" left="32" width="60%" top="10"> <mx:Accordion width="100%" height="100%"> <mx:VBox width="100%" height="100%" label="FAQ"> <mx:List id="lstGen" click="clickHandler();" width="100%" dataProvider="{General.state}" height="100%"/> </mx:VBox> </mx:Accordion> </mx:VBox> <mx:VBox width="100%" height="100%" horizontalAlign="center"> <mx:ViewStack id="myViewStack" borderStyle="none" width="100%" height="100%" clipContent="false"> <mx:Canvas id="welcome" label="Welcome" width="100%" height="100%" clipContent="false"> <mx:TextArea width="100%" id="tTest2" height="100%" editable="false" textAlign="center" > <mx:htmlText> <![CDATA[ <br><b>Remedy DSBS Help Menu</b> <br>The Desktop Support Billing System (DSBS) has been developed to track, simplify, and automate the billing process as it relates to items that have been purchased though desktop support services. <br>DSBS was created with the Action Request System which can be accessed by users in two ways; the Remedy User Tool and the Web. Your role will correspond to your access to the application. ]]> </mx:htmlText> </mx:TextArea> </mx:Canvas> <mx:Canvas id="q_1" label="What is the Desktop Support Billing System?" width="100%" height="100%"> <mx:TextArea width="100%" height="100%" editable="false"> <mx:htmlText> <![CDATA[ <u><b><font size="15">What is the Desktop Support Billing System? </font></b></u> <br> The Desktop Support Billing System (DSBS) application was designed to streamline the OCIO Desktop Support billing process from a very intensive manual process utilizing both client-server and a web- based application which eliminated the amount of paperwork and emails associated to the manual process. This application was presented to the Administrative Officers in July 2006. An email notice was sent to the NIST SMA's in November of 2006 and training was offered. <br> The DSBS has three major operating areas and roles. The first process is when the Desktop Support technicians identify which Help Desk cases are billable. After a case is marked as billable, the Desktop Support technician enters the information which needs to be billed, this is either software or hardware used or requested from the requester. After this information is entered a reconciliation process is completed by another of the Desktop Support staff. After this reconciliation process has been completed, an email is sent to the appropriate Administrative Officer notifying them that they must enter in the accounting information. This information is required before the transaction can be sent to the finance system. The last role is the Application Manager who monitors the application consoles and assists the Administrative Officers in the use of the application. <br> The DSBS was deployed into production in December of 2006. We used a staged deployment for this application, with the OCIO Administrative Officers being first to use the new web-based application. This application utilizes workflow which is based on the Status fields. There is a Billing Record with associated Billing Line Items. The Administrative Officers review the Billing Line item, review the description and charges, and by entering the project-task and optional requisition number information the Administrative Officer is approving the charge. The status for both the Billing Line Item and Billing Records are than changed to "CBS Accounting" which is a flag for a weekly extract to be generated which feeds into the CBS accounting system. ]]> </mx:htmlText> </mx:TextArea> </mx:Canvas> <mx:Canvas id="q_2" label="What is a Billing Item?" width="100%" height="100%"> <mx:TextArea width="100%" height="100%" editable="false"> <mx:htmlText> <![CDATA[ <u><b><font size="15">What is a Billing Item?</font></b></u> <br> <br>The act of either using a pre-existing computer hardware item or the need to order and purchase a computer component or computer software product insitutes a <b>Billable Record</b> <br><i>If an item has a price, it is billable. ]]> </mx:htmlText> </mx:TextArea> </mx:Canvas> </mx:ViewStack> <mx:Button label="Print" click="doPrint ();" /> <mx:Spacer/> </mx:VBox> </mx:HDividedBox> </mx:Panel> </mx:VBox> <mx:Label text="maintained by ASD" textAlign="center" color="#c0c0c0" horizontalCenter="0" bottom="10"/> </mx:Application> [/code] :(

