开发者

Flex: Auto-resize contents of a group to fit a printed page

开发者 https://www.devze.com 2023-01-22 14:38 出处:网络
I have a large Group which contains two rulers and labels for distances, and a varied amount of smaller groups consisting of images and labels. Now my task is to print the large group on a page with a

I have a large Group which contains two rulers and labels for distances, and a varied amount of smaller groups consisting of images and labels. Now my task is to print the large group on a page with a header and a footer. The large group extends outside the edge of the page and pushes the footer off the page. If I was printing just the Group, I could 开发者_StackOverflowuse

printJob.addObject(myView, FlexPrintJobScaleType.SHOW_ALL); 

to fit it all on one page, but that would scale the header and footer as well, which I don't want - I'll be printing more pages and want the header and footer sizes to stay the same.

Is there a way to scale only the group and its contents automatically before printing?


arkward... you'd probably have to scale the group before adding it to your print job, which means you are doing to have to do lots of calculations about resolutions, DPIs, etc

The property to change is http://help.adobe.com/en_US/FlashPlatform//reference/actionscript/3/mx/core/UIComponent.html#scaleY

but working out what to scale by is a much harder job.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号