Solved

How do I allow users to save printer driver settings for subsequent jobs in Flash/Actionscript

Posted on 2011-09-20
6
182 Views
Last Modified: 2012-05-12
I have an Flash/Actionscript 3 project that allows users to print. (I'm using PrintJob.) They may print several times during a session and would like to set printer preferences (it's a badge/card printer with many settings) and retain them for the mulitiple print jobs during the Flash session.

Everything I've read says this isn't possible in Flash. Has anyone figured out how to do this?

Can it be done if I switch to AIR?

Thanks.
0
Comment
Question by:BlueKarana
  • 3
  • 3
6 Comments
 
LVL 29

Expert Comment

by:dgofman
ID: 36569090
You can save printer settings but I am not sure you can set values to Printing Properties Dialog.
However using AIR you have additional settings features such change orientation what I sent 2 hours yesterday to figure out if I can do the same  from Flash Player


http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/printing/PrintJob.html?filter_flash=cs5&filter_flashplayer=10.2&filter_air=2.6


0
 

Author Comment

by:BlueKarana
ID: 36569254
How do you save settings? That's what I need to do, allow the user to save settings from one print to the next in the same app run/session. Each time the app starts the print job and the print dialog appears, it reverts to the default settings. (I have a local PrintJob object in a function that's invoked each time a user clicks a print button.)

I tried defining the PrintJob object as a global and reusing it, but, it doesn't work, at least how I did it. Can you do that but somehow clear it and retain/save settings for a second, or third, etc, print?

Yeah, you can have a bit more control in AIR but I'm resisting giving up browser support. I don't really want to have an installed app unless absolutely necessary.

Besides, as I said, this is a specialty printer with many more options than the typical office printer in the driver, most of which aren't settable in the AIR options anyway. And, I don't want to set it programmatically; I just want to allow setting saves.

0
 
LVL 29

Expert Comment

by:dgofman
ID: 36569365
That was my point you cannot set settings because is related to your OS, drivers and printing installation properties. I don't think Adobe overriding default Print dialog.
0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 

Author Comment

by:BlueKarana
ID: 36570591
"You can save printer settings but I am not sure..."

This comment you made led me to believe the user could save settings. No so, it seems.
0
 
LVL 29

Accepted Solution

by:
dgofman earned 500 total points
ID: 36570709
Let check full sentence

"You can save printer settings, but I am not sure you can set values to Printing Properties Dialog."

That means when you create a page "addPage" I can get all available settings such as pageWidth, pageHeight, orientation and save on your local machine using ShareObject API's.

After "but" I explain I will not able to apply those settings for a next Print Dialog :)


0
 

Author Closing Comment

by:BlueKarana
ID: 36920219
The answer confirmed that it can't be done.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now