?
Solved

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

Posted on 2011-09-20
6
Medium Priority
?
188 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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 1500 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
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): …
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
Suggested Courses

764 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