[flexcoders] Re: FlexPrintJob - Very Hit Miss

2008-09-08 Thread thatstephen
Hi,

Thank you for this advice. I have a similar problem and have tried to
follow your advice. 

However I have tried everything I can think of to make Flex and its
asynchronous events wait for the image load before adding the next
rendered page to the printjob using addObject.

How can you make the Flash Player wait for these events before adding
the page endered with the images correctly loaded?

I have noted that the otherwise good code for printing in the
Flexreport component only seems to use embedded images. 

Thanks 
  
--- In flexcoders@yahoogroups.com, Dmitri Girski [EMAIL PROTECTED] wrote:

 Hi Jeff,
 
 Your image simply is not ready to be rendered. It could be not loaded
 yet, it could be loaded, but positioned well off the Vbox etc.
 
 You have to wait for 2 events for this image:
 -creation Complete
 -updateComplete
 This would guarantee in 90% that your image will be printed. If you
 want 100%, then you have also to check the parent container
 updateComplete event.
 
 
 Cheers,
 Dmitri.
 
 
 
 
 --- In flexcoders@yahoogroups.com, Battershall, Jeff
 jeff.battershall@ wrote:
 
  Actually it is more miss than hit on OSX.  By muttering certain
  incantations I'm able to print a loaded bitmap about once out of
very 20
  tries.  Otherwise, blank pages. The image by the way has been
loaded for
  some time when this happens.
  
  Has anyone experienced this? A workaround?
  
  Jeff Battershall
  Application Architect
  Dow Jones Indexes
  jeff.battershall@
  (609) 520-5637 (p)
  (484) 477-9900 (c)
 





RE: [flexcoders] Re: FlexPrintJob - Very Hit Miss

2008-09-08 Thread Battershall, Jeff
In my case, it was size related. Smaller images were fine but larger
ones could be problematic, and the behavior was restricted to the Adobe
PDF printer driver.

Jeff

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of thatstephen
Sent: Monday, September 08, 2008 11:54 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: FlexPrintJob - Very Hit  Miss


Hi,

Thank you for this advice. I have a similar problem and have tried to
follow your advice. 

However I have tried everything I can think of to make Flex and its
asynchronous events wait for the image load before adding the next
rendered page to the printjob using addObject.

How can you make the Flash Player wait for these events before adding
the page endered with the images correctly loaded?

I have noted that the otherwise good code for printing in the Flexreport
component only seems to use embedded images. 

Thanks 
  
--- In flexcoders@yahoogroups.com, Dmitri Girski [EMAIL PROTECTED] wrote:

 Hi Jeff,
 
 Your image simply is not ready to be rendered. It could be not loaded 
 yet, it could be loaded, but positioned well off the Vbox etc.
 
 You have to wait for 2 events for this image:
 -creation Complete
 -updateComplete
 This would guarantee in 90% that your image will be printed. If you 
 want 100%, then you have also to check the parent container 
 updateComplete event.
 
 
 Cheers,
 Dmitri.
 
 
 
 
 --- In flexcoders@yahoogroups.com, Battershall, Jeff 
 jeff.battershall@ wrote:
 
  Actually it is more miss than hit on OSX.  By muttering certain 
  incantations I'm able to print a loaded bitmap about once out of
very 20
  tries.  Otherwise, blank pages. The image by the way has been
loaded for
  some time when this happens.
  
  Has anyone experienced this? A workaround?
  
  Jeff Battershall
  Application Architect
  Dow Jones Indexes
  jeff.battershall@
  (609) 520-5637 (p)
  (484) 477-9900 (c)
 






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
Links





RE: [flexcoders] Re: FlexPrintJob - Very Hit Miss

2008-09-08 Thread Alex Harui
Due to a bug in FlashPlayer, you can't wait.  Preload images before starting  
the print job

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
thatstephen
Sent: Monday, September 08, 2008 8:54 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: FlexPrintJob - Very Hit  Miss


Hi,

Thank you for this advice. I have a similar problem and have tried to
follow your advice.

However I have tried everything I can think of to make Flex and its
asynchronous events wait for the image load before adding the next
rendered page to the printjob using addObject.

How can you make the Flash Player wait for these events before adding
the page endered with the images correctly loaded?

I have noted that the otherwise good code for printing in the
Flexreport component only seems to use embedded images.

Thanks

--- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Dmitri 
Girski [EMAIL PROTECTED] wrote:

 Hi Jeff,

 Your image simply is not ready to be rendered. It could be not loaded
 yet, it could be loaded, but positioned well off the Vbox etc.

 You have to wait for 2 events for this image:
 -creation Complete
 -updateComplete
 This would guarantee in 90% that your image will be printed. If you
 want 100%, then you have also to check the parent container
 updateComplete event.


 Cheers,
 Dmitri.




 --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, 
 Battershall, Jeff
 jeff.battershall@ wrote:
 
  Actually it is more miss than hit on OSX. By muttering certain
  incantations I'm able to print a loaded bitmap about once out of
very 20
  tries. Otherwise, blank pages. The image by the way has been
loaded for
  some time when this happens.
 
  Has anyone experienced this? A workaround?
 
  Jeff Battershall
  Application Architect
  Dow Jones Indexes
  jeff.battershall@
  (609) 520-5637 (p)
  (484) 477-9900 (c)
 




[flexcoders] RE: FlexPrintJob - Very Hit Miss

2008-08-29 Thread Alex Harui
Are you directly printing the loaded bitmap or passing it into SWFLoader/Image?

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
Battershall, Jeff
Sent: Friday, August 29, 2008 3:58 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] FlexPrintJob - Very Hit  Miss


Actually it is more miss than hit on OSX. By muttering certain
incantations I'm able to print a loaded bitmap about once out of very 20
tries. Otherwise, blank pages. The image by the way has been loaded for
some time when this happens.

Has anyone experienced this? A workaround?

Jeff Battershall
Application Architect
Dow Jones Indexes
[EMAIL PROTECTED]mailto:jeff.battershall%40dowjones.com
(609) 520-5637 (p)
(484) 477-9900 (c)



RE: [flexcoders] RE: FlexPrintJob - Very Hit Miss

2008-08-29 Thread Battershall, Jeff
I'm printing a VBox which contains the loaded image + a Text control
below it.  Works fine to a normal printer - acts very buggy with PDF
driver.
 
Actually with a regular printer, when I set the scaling to SHOW_ALL,
the Text does not print.  It happens that the image is very long (about
3 pages on a normal printer).  
 
Jeff
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: Friday, August 29, 2008 1:50 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] RE: FlexPrintJob - Very Hit  Miss



Are you directly printing the loaded bitmap or passing it into
SWFLoader/Image?

 

From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Battershall, Jeff
Sent: Friday, August 29, 2008 3:58 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] FlexPrintJob - Very Hit  Miss

 

Actually it is more miss than hit on OSX. By muttering certain
incantations I'm able to print a loaded bitmap about once out of
very 20
tries. Otherwise, blank pages. The image by the way has been
loaded for
some time when this happens.

Has anyone experienced this? A workaround?

Jeff Battershall
Application Architect
Dow Jones Indexes
[EMAIL PROTECTED]
mailto:jeff.battershall%40dowjones.com 
(609) 520-5637 (p)
(484) 477-9900 (c)



 



[flexcoders] Re: FlexPrintJob - Very Hit Miss

2008-08-29 Thread Dmitri Girski
Hi Jeff,

Your image simply is not ready to be rendered. It could be not loaded
yet, it could be loaded, but positioned well off the Vbox etc.

You have to wait for 2 events for this image:
-creation Complete
-updateComplete
This would guarantee in 90% that your image will be printed. If you
want 100%, then you have also to check the parent container
updateComplete event.


Cheers,
Dmitri.




--- In flexcoders@yahoogroups.com, Battershall, Jeff
[EMAIL PROTECTED] wrote:

 Actually it is more miss than hit on OSX.  By muttering certain
 incantations I'm able to print a loaded bitmap about once out of very 20
 tries.  Otherwise, blank pages. The image by the way has been loaded for
 some time when this happens.
 
 Has anyone experienced this? A workaround?
 
 Jeff Battershall
 Application Architect
 Dow Jones Indexes
 [EMAIL PROTECTED]
 (609) 520-5637 (p)
 (484) 477-9900 (c)