Re: Bug in printing with test case (was Re: [flexcoders] Flex print jobs)

2006-08-11 Thread Samuel Reuben
Hi Wayne, I want to reproduce the scenario that you are facing. Could you send me the code that you are using? You could zip the whole thing and send it to this address, I'll try and work out a solution for you. Thanks, -sam On 8/10/06, wayneposner [EMAIL PROTECTED] wrote: Hi Sam,I

Re: Bug in printing with test case (was Re: [flexcoders] Flex print jobs)

2006-08-10 Thread Samuel Reuben
Can you try proceeding with theprinting on updateComplete event of the Image? If they are small images, I think Embeding the images in the swf should do the trick. thanks, -sam On 8/10/06, wayneposner [EMAIL PROTECTED] wrote: After going back and adding an event listener for the

Re: Bug in printing with test case (was Re: [flexcoders] Flex print jobs)

2006-08-10 Thread Tom Chiverton
On Wednesday 09 August 2006 19:50, wayneposner wrote: var printjob:FlexPrintJob=new FlexPrintJob(); printjob.start(); var pp:PartPrint=new PartPrint(); pp.product=bom[1]; this.addChild(pp); callLater(doPrint,[printjob,pp]); private function doPrint(printjob:FlexPrintJob,

Re: Bug in printing with test case (was Re: [flexcoders] Flex print jobs)

2006-08-10 Thread Tom Chiverton
On Thursday 10 August 2006 10:39, Tom Chiverton wrote: callLater(doPrint,[printjob,pp]); callLater(doPrint,pp); private function doPrint(printjob:FlexPrintJob, item:PartPrint):void private function doPrint(item:PartPrint):void Oops :-) -- Tom Chiverton

Bug in printing with test case (was Re: [flexcoders] Flex print jobs)

2006-08-10 Thread wayneposner
Hi Sam, I tried a few events and complete was the only one that would work. Unfortunately, the data (path to the images) is being fed via an XML file which is constantly being updated, so there is no way for me to embed the images. I'm trying to build a custom template batch printing

Bug in printing with test case (was Re: [flexcoders] Flex print jobs)

2006-08-09 Thread wayneposner
I was having the same problem until I added: pp.width=printjob.pageWidth; pp.height=printjob.pageHeight where pp is the object that I want printed. Not to hijack this thread, but is there a limitation in Flex that prevents the printing of jpegs that have been loaded dynamically onto a canvas?

Re: Bug in printing with test case (was Re: [flexcoders] Flex print jobs)

2006-08-09 Thread Tom Chiverton
On Wednesday 09 August 2006 11:13, Samuel Reuben wrote: On 7/19/06, Tom Chiverton [EMAIL PROTECTED] wrote: On Wednesday 19 July 2006 10:39, Samuel Reuben wrote: Does this happen even when the object height/width is set? Does what happen ? The Silent failure ( Actually here nothing was

Bug in printing with test case (was Re: [flexcoders] Flex print jobs)

2006-08-09 Thread wayneposner
Tom, I set the width/height for the whole component. I also tried setting it for the image. Setting it for the image actually gives me nothing but a blue background when I view the print via Microsoft Document Imaging. Adding a callLater to the mix still does not yield a jpeg in the print

Bug in printing with test case (was Re: [flexcoders] Flex print jobs)

2006-08-09 Thread wayneposner
After going back and adding an event listener for the complete action on the image I was able to get the image to print. Having to use an event listener, however, causes a problem. I need to loop through a potentially large data set, push data (including a path to an image) to my print view

Re: Bug in printing with test case (was Re: [flexcoders] Flex print jobs)

2006-07-19 Thread Samuel Reuben
Hi Tom, Does this happen even when the object height/width is set? I suppose a ValidateNow() could make a difference... -sam On 7/6/06, Tom Chiverton [EMAIL PROTECTED] wrote: On Wednesday 05 July 2006 15:09, Tom Chiverton wrote: If I try and print a dynamicaly instantiated GUI component, the

Re: Bug in printing with test case (was Re: [flexcoders] Flex print jobs)

2006-07-19 Thread Tom Chiverton
On Wednesday 19 July 2006 10:39, Samuel Reuben wrote: Does this happen even when the object height/width is set? Does what happen ? Silent failure or work around stops working ? I suppose a ValidateNow() could make a difference... I'm guessing that is different from the form validators ? --

Re: Bug in printing with test case (was Re: [flexcoders] Flex print jobs)

2006-07-06 Thread Tom Chiverton
On Wednesday 05 July 2006 15:09, Tom Chiverton wrote: If I try and print a dynamicaly instantiated GUI component, the job silently fails. If I create the same component in line in the page, the job works well. Even more oddness. If I pass the id of a page element that is present, but not

Bug in printing with test case (was Re: [flexcoders] Flex print jobs)

2006-07-05 Thread Tom Chiverton
On Tuesday 04 July 2006 15:47, Tom Chiverton wrote: Has anyone else had problems using the printJob classes ? If I try and print a dynamicaly instantiated GUI component, the job silently fails. If I create the same component in line in the page, the job works well. Please can someone confirm

Bug in printing with test case (was Re: [flexcoders] Flex print jobs)

2006-07-05 Thread Tom Chiverton
(resend as appears to have vanished) On Tuesday 04 July 2006 15:47, Tom Chiverton wrote: Has anyone else had problems using the printJob classes ? If I try and print a dynamicaly instantiated GUI component, the job silently fails. If I create the same component in line in the page, the job