开发者

Flex (AIR) setup print time

How can i set print time for flex printjob.

when the time is ripe my program will automat开发者_Python百科ically print my job

eg. i want to print my job at 11.00 AM i will set print time in my program to 11.00 AM when time is 11.00 AM flex will automatically print my job


You can't. Flex is the wrong tool for this.

You could use a timer to trigger something at 11am, however unless the application is active the timer gets wiggy as the frame rates of the app will slow down. This is one of the changes made in the recent version of the player to help w/ battery life and performance on mobile devices. so, there is no guarantee the timer will trigger at the correct time.

Additionally, Flex is a client side tool. There is no guarantee that your users will have their Flex client up and running and active when 11am rolls around. Depending on your user base, there is also no guarantee that your 11am is there 11am.

All that said, the best you can do from Flex is to pop up a print window which will require user interaction. I wouldn't consider that automatic.

If you want to do this server side, use your server side language, or some server side daemon to trigger the print job at 11am. If you want to do this on your clients, there should be a way to schedule this with the OS, or to write a java or .NET program to run in the background and print when appropriate.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜