Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-30-2008, 09:22 AM
Senior Member
 
Join Date: Feb 2003
Posts: 212
Default Printing with swfkit

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
That works for the printing without showing the dialog,

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
Cause in the help file, there is mentioned that the printerproperties of the Flashplayer can be called the same as the one of the printerobject.
Quote:
The meaning of the ``FlashPlayer.printerProperties.paperSize'' property is the same as that of the ``Printer.paperSize'', the only difference is that the former property is used to control the printer used by the flash player, while the latter is to control the printer used by swfkit.
But this doesn't work to set the printer.
With 'FlashPlayer.showPrintDlg = false' it always uses the standard printer.
Is there a way to set the standard printer in swfkit?
Reply With Quote
  #2 (permalink)  
Old 07-07-2008, 08:45 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: Printing with 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?
Reply With Quote
  #3 (permalink)  
Old 07-07-2008, 11:51 AM
Senior Member
 
Join Date: Feb 2003
Posts: 212
Default Re: Printing with swfkit

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)
It would be great if it would be possible to print movieclips the same way.
Is there a possibility to implement that.
If that would be possible, I could even do without the 'save settings' feature.
Reply With Quote
  #4 (permalink)  
Old 07-07-2008, 08:42 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: Printing with swfkit

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.
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 05:15 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.