PrintJob problem

0

i've a problem with the printjob (I think).

when i run report by launching the btnPrintClick() function, a print job is shown in the printer list, but nothing is printed.... all other function work correctly.

 

have you any idea?

AllN's picture
14
Joined: Jan 17 2008 - 3:53am
Last seen: 11 years 10 months ago

5 Answers:

0

Hi,

I'm trying to get printing to work for the flash viewer as well. I have the source code checked out from svn, and svnversion shows it to be revision 41. When I look at the code I don't see a btnPrintClick() function implemented anywhere... what version of the code do you have? Would you mind posting the contents of that function?

Thanks!

Chris

cdollar393's picture
Joined: Dec 10 2008 - 1:12pm
Last seen: 10 years 11 months ago
0
where can i see the version of the code? this is the code: private function btnPrintClick():void { var pj:PrintJob = new PrintJob(); var pagesToPrint:uint = 0; if (pj.start()) { var i:int, idx:int = report.pageCount; for(i=0; i 0) { pj.send(); } } } thanks
AllN's picture
14
Joined: Jan 17 2008 - 3:53am
Last seen: 11 years 10 months ago
0

Thanks for the reply! This is the code I was referring to jasperforge.org/scm/viewvc.php/trunk/jasperreports-flash/src/net/sf/jasperreports/flex/view/Viewer.mxml You can also browse to the code if you click on the "Source" link above. In the code in the link I posted it doesn't have the btnPrintClick() function, so either it was removed at some point or you have code that is newer? I'll try the code that you posted.

Thanks.

Chris

cdollar393's picture
Joined: Dec 10 2008 - 1:12pm
Last seen: 10 years 11 months ago
0

i don't think it's a newer code....

let me know if you'll have my problems with posted code

 

thanks

Tiziano

AllN's picture
14
Joined: Jan 17 2008 - 3:53am
Last seen: 11 years 10 months ago
0

Any hopes that printing from flash viewer will ever be possible?

It would be so cool !!!

 

Also saving so some kind of format either internal for flash or pdf would be much appreciated! But printing is the #1, definitely!

andfedotov's picture
Joined: Sep 5 2006 - 8:52pm
Last seen: 13 years 2 months ago
Feedback
randomness