Solved

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

Posted on 2011-09-20
6
185 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
Technology Partners: 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 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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
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): …
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

737 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