|
|||
|
I'ld like to let the user be able to chose a printer when he starts the program.
Then, whenever he prints from within the swf-movie, 1. the printerdialog will not be shown, 2. the documents are printed with the printer the user has chosen when starting the program. For 1. I used Code:
FlashPlayer.showPrintDlg = false But 2. seems to be hard I cannot select a printer when i start the program I thought this code would do the trick. Code:
FlashPlayer.printerProperties.printerIndex = 1 Quote:
With 'FlashPlayer.showPrintDlg = false' it always uses the standard printer. Is there a way to set the standard printer in swfkit? |
|
|||
|
It's not so easy. The "printerIndex" property is only for the "Printer" object in ffish script, so it has no effect to the actionscript functions. If you hide the print dialog box, it will use the default printer of the system. However, it is not good to change the default printer of the users. The only way is to add a new feature to save the last settings in the print dialog box launched by actionscript, and then use the saved settings when the print dialog box is hidden. When do you need this feature?
|
|
|||
|
Thanks,
It's not that urgent. My deadline is december. Another feature request. With the printer object you can print images like Code:
Printer.printImage(image, left, top, width, height) Is there a possibility to implement that. If that would be possible, I could even do without the 'save settings' feature. |
|
|||
|
Sorry, there is no such a method. If there is one, it will also be first capturing the image of the movie clip, and then printing the captured image. However, capturing the image of a movie clip is not as convenient as printing the movie clip directly in actionscript.
|
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|