8/22/2010 9:26:32 PM
Title:
printing
hi to all. i have an option for printing my site page.so i used printjob its printed output in height wise ok but in width wise it did not print full page so i used landscape its not work properly. so please anybody give sample for landscape my printing output in flex 3....please help me........
8/22/2010 10:58:16 PM
check this link to force print to landscape layout mode in flex with actionscript 3
http://www.stevensacks.net/2007/03/16/force-landscape-printing-with-printjob/
8/23/2010 2:28:01 AM
thanks for your reply.the above one developed for movie clip. i used the same code but i does not work its affect the application view. so we need some other solution for that . please anyone help me?
Tyson
Points: 680
Posts:0
8/23/2010 5:52:50 AM
buddy I want to make it clear to you that , flash or flex does not have any property to set the orientation of print layout to landscape mode. which means you cannot force printer settings to landscape mode. You can just get the information about what is current orientation in the printer settings by using
var myPrintJob:PrintJob = new PrintJob();
if(myPrintJob.orientation.toLowerCase() != "landscape")
{
Alert.show("Please select landscape in your print options")
}