[flexcoders] PrintJob black background
The print is always has black background on the pager. protected function print_clickHandler(event:MouseEvent):void { try{ var printUI:PrintUIOptions = new PrintUIOptions(); printUI.disablePageRange = true; printjob.start2( printUI, false ); printjob.addPage( printContent, new Rectangle(0,0,printContent.width,printContent.height) ); printjob.send(); }catch(e:Error){ } } s:Group includeIn=print verticalCenter=0 horizontalCenter=0 s:BitmapImage y=-87 width=486 height=661 horizontalCenter=0 source=@Embed('assets/PrintPanelState/printBg.png')/ s:RichText id=printContent width=458 height=549 horizontalCenter=0 y=-66 fontFamily=Aab fontSize=24 / s:Image horizontalCenter=0 y=505 click=print_clickHandler(event) source=@Embed('assets/PrintPanelState/print.png') buttonMode=true/ /s:Group
[flexcoders] Printjob
I was wondering if any has had any experience with Printjob or AlivePDF? I am trying to print items items that are half on the screen and half off the screen. I was wondering if you are able to print items that are not on screen? So say someone dragged an item so only 1/4 of it showing in the browser windowwould Flex be able to print 100% of it or just the 1/4 that is showing? I would settle for print items that are showing inside a parent container at this point. So say I have 5 nodes in an Canvas. I and the Canvas is inside the Application page. If I have the Canvas width and height at 80% of the Applications width/height and I drag one of child nodes so half is showing in the Canvas container the other half is obscured because of the Canvas's boundaries and I set clipContent to false it doesn't change anything. I have called callLater following http://www.darronschall.com/weblog/archives/000193.cfm but it still won't print those half on half items in the Canvas container (yes the canvas container is 100% in the bounds of the Application container).
[flexcoders] printJob and callLater
I have an application that produces a very large printout. The documentation in the printJob says that you have a 15 second time limit in between calls to PrintJob.addPage (this is what FlexPrintJob.addObject is calling). However, based on my tests it seems you have 60 seconds for the whole thing to happen. I tried to chain my addPage calls with callLaters but that just cause an exception on the second addPage. The documentation says that you can do it in multiple frames, but that doesn't seem to be the case. Am I stuck with making sure my print job get's completely done withing the 60 second timelimit or is there a work around?
RE: [flexcoders] printJob and callLater
Yeah, due to a bug, you can't print over multiple frames. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of markdemich Sent: Wednesday, September 03, 2008 12:46 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] printJob and callLater I have an application that produces a very large printout. The documentation in the printJob says that you have a 15 second time limit in between calls to PrintJob.addPage (this is what FlexPrintJob.addObject is calling). However, based on my tests it seems you have 60 seconds for the whole thing to happen. I tried to chain my addPage calls with callLaters but that just cause an exception on the second addPage. The documentation says that you can do it in multiple frames, but that doesn't seem to be the case. Am I stuck with making sure my print job get's completely done withing the 60 second timelimit or is there a work around?
[flexcoders] PrintJob strange behavior
I was wondering why the following occurs, if anyone has an idea? I have a PrintJob very similar to the way the Flex 3 Cookbook describes how to add the Job to the main app. parentApp.addChild(printView); The problem I see, is that if the printView is any MXML component which holds my labels and printGrid, upon adding it to the parentApp using the function call above, all my fields get reinitialized after this method call, and it doesn't matter. scope either. For example if I have a MXML file call FormTemplate.mxml with my labels and printGrid to print and define it like printview:FormTemplate.mxml = new FormTemplate.mxml(), then add my data to the labels and printGrid upon the call to add to parent app.these fields get re-initialized Yet if I define, any variables of the main types below, all my data is retained after the function call. So its like subclasses get reininialized, but direct parents do not. Below types retain there values protected var printDataGrid:PrintDataGrid = null; protected var label1:Label = null;
[flexcoders] PrintJob print dialog box
Dear list, I'm using PrintJob object to print multiple pages . When the print dialog ( on pc) opens, under Page Range, the Current Page and Pages radio buttons are greyed out. Is there a way to enable them so that users can specify what page to print directly from this print dialog box? Any suggestion is appreciated, Thanks!
[flexcoders] PrintJob print dialog box
Dear list, I'm using PrintJob object to print multiple pages . When the print dialog ( on pc)nbsp; opens, under Page Range, the Current Page and Pages radio buttons are greyed out. Is there a way to enable them so that users can specify what page to print directly from this print dialog box? Any suggestion is appreciated, Thanks!
[flexcoders] PrintJob Scaling problem
Hi, Using FB2 + Hotfix 1. I have set up a simple PrintJob to send 1 or 2 pages to the printer. I am trying to scale these images, but the scaling does not seem to take effect. By mistake, I left out the code to restore original scaling and found that if I printed the same page again, the scaling had taken effect and it worked, then next time it had reverted, and so on... Can anyone tell me, is there a delay between applying scaling to a Sprite which is a child of the component I am running a script in and the scaling occuring? Also, the scaling does not seem to affect a bitmap image inside the container I am scaling - it scales on screen, but not in my printed document - this seems like buggy behaviour to me - has anyone any comments on this? Thanks Glen
[flexcoders] PrintJob Class driving me crazy!! - Please Help
Hello All, I have 4-5 Move/Scale functions that must place, the moment the PrintJob.start() command is given. The problem is, these functions are still modifying the Objects to be printed (scaling and moving), while the PrintJob is sending everything to the printer. I tried every which way, to modify all these Objects residing on the page being printed, before calling start(), but all my functions rely on information not available until the PrintJob.start() method gets called (like Page Size and Margin Size). I feed the Page Size into a function that properly scales the page (and specific Objects which reside on that page) being added to the PrintJob. If I use too many callLater functions once the PrintJob.start() method gets called (in hopes of the delay giving the scaling functions a chance to finish), it errors out since the page never gets spooled. How is everybody else dealing with this issue of being forced to call start() in order to gain access to the Page Size information, and hope that their functions all finish in time, by the time the page gets spooled to the printer? Thanks in advance for all your help on this, Mike
RE: [flexcoders] PrintJob Class driving me crazy!! - Please Help
validateNow() is used to hammer pages into their final state. Hopefully they'll fix the PrintJob bug in Player 10.x so you can do more work after PrintJob.start. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mike Anderson Sent: Wednesday, April 02, 2008 6:16 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] PrintJob Class driving me crazy!! - Please Help Hello All, I have 4-5 Move/Scale functions that must place, the moment the PrintJob.start() command is given. The problem is, these functions are still modifying the Objects to be printed (scaling and moving), while the PrintJob is sending everything to the printer. I tried every which way, to modify all these Objects residing on the page being printed, before calling start(), but all my functions rely on information not available until the PrintJob.start() method gets called (like Page Size and Margin Size). I feed the Page Size into a function that properly scales the page (and specific Objects which reside on that page) being added to the PrintJob. If I use too many callLater functions once the PrintJob.start() method gets called (in hopes of the delay giving the scaling functions a chance to finish), it errors out since the page never gets spooled. How is everybody else dealing with this issue of being forced to call start() in order to gain access to the Page Size information, and hope that their functions all finish in time, by the time the page gets spooled to the printer? Thanks in advance for all your help on this, Mike
[flexcoders] printJob on a textArea
When I go to print my text area in flex. The Text area gets clipped by what is shown and the rest does not print. The styles and everything come out great, I just cant print the data that is not shown. Any Ideas Jeremy Tooley
Re: [flexcoders] printJob on a textArea
On Monday 05 Mar 2007, Jeremy Tooley wrote: When I go to print my text area in flex. The Text area gets clipped by what is shown and the rest does not print. Have you tried setting some of the other scaling options in the print job ? -- Tom Chiverton Helping to dramatically reinvent bricks-and-clicks information On: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. Yahoo! Groups Sponsor ~-- See what's inside the new Yahoo! Groups email. http://us.click.yahoo.com/0It09A/bOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: REPOST: [flexcoders] PrintJob cutting text on datagrid
Ok, here is a simplified version (for Flex 1.5), rename file extension pdf to zip. BTW, I found where the bug occurs (scaleX and scaleY causes it) mx:VBox id=printArea backgroundColor=#FF mx:Spacer height=15/ mx:HBox backgroundColor=#FF mx:Spacer width=15/ !-- THE BUG IS HERE -- !-- This line with scaleX and scaleY loses the bottom tails of small letters like q,g,j,y etc. -- mx:VBox id=printContainer backgroundColor=#FF scaleX=70 scaleY=70 !-- If line above was like this line commented below (without scaleX and scaleY), it would work fine with small letters like q,g,j,y etc. -- !-- mx:VBox id=printContainer backgroundColor=#FF -- mx:VBox id=regularOrdersArea height=100% mx:Spacer height=5/ mx:Label id=gridLabel width=100% textAlign=left/ mx:DataGrid id=grid/ /mx:VBox /mx:VBox /mx:HBox /mx:VBox -Mika From: Mika Kiljunen [mailto:[EMAIL PROTECTED] Sent: Friday, January 20, 2006 11:59 AM To: Nihit Saxena; flexcoders@yahoogroups.com Subject: RE: REPOST: [flexcoders] PrintJob cutting text on datagrid Is there really no solution for this annoying printing problem or am I and the other guy the only ones printing datagrids on paper? If so I guess I have to start contacting Macromedia (or Adobe) officially to get some solution for this? In the app that we are building this could potentially cause a life threatening and dangerous situation for a real life person. -Mika From: Nihit Saxena [mailto:[EMAIL PROTECTED] Sent: 20. joulukuuta 2005 19:46 To: flexcoders@yahoogroups.com; [EMAIL PROTECTED] Subject: RE: REPOST: [flexcoders] PrintJob cutting text on datagrid There is a small problem in printing text it is being followed up. Can you please resend the sample, I will check if it is related to the same. Thanks, Nihit From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Mika Kiljunen Sent: Tuesday, December 20, 2005 5:16 PM To: flexcoders@yahoogroups.com Subject: REPOST: [flexcoders] PrintJob cutting text on datagrid Repost, since no answer Anyone? From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Mika Kiljunen Sent: 1. joulukuuta 2005 14:40 To: flexcoders@yahoogroups.com Subject: [flexcoders] PrintJob cutting text on datagrid Hi, Can someone explain why PrintJob is cutting the bottom of letters like g, y,q etc?? See pic to explain. In the pic (a printed datagrid) the numbers should have text mg after them, but it has mg and the g has no bottom on it! Is there a way to fix this? -Mika PrintTest.pdf Description: Adobe PDF document
RE: REPOST: [flexcoders] PrintJob cutting text on datagrid
Is there really no solution for this annoying printing problem or am I and the other guy the only ones printing datagrids on paper? If so I guess I have to start contacting Macromedia (or Adobe) officially to get some solution for this? In the app that we are building this could potentially cause a life threatening and dangerous situation for a real life person. -Mika From: Nihit Saxena [mailto:[EMAIL PROTECTED] Sent: 20. joulukuuta 2005 19:46 To: flexcoders@yahoogroups.com; [EMAIL PROTECTED] Subject: RE: REPOST: [flexcoders] PrintJob cutting text on datagrid There is a small problem in printing text it is being followed up. Can you please resend the sample, I will check if it is related to the same. Thanks, Nihit From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Mika Kiljunen Sent: Tuesday, December 20, 2005 5:16 PM To: flexcoders@yahoogroups.com Subject: REPOST: [flexcoders] PrintJob cutting text on datagrid Repost, since no answer Anyone? From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Mika Kiljunen Sent: 1. joulukuuta 2005 14:40 To: flexcoders@yahoogroups.com Subject: [flexcoders] PrintJob cutting text on datagrid Hi, Can someone explain why PrintJob is cutting the bottom of letters like g, y,q etc?? See pic to explain. In the pic (a printed datagrid) the numbers should have text mg after them, but it has mg and the g has no bottom on it! Is there a way to fix this? -Mika -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: REPOST: [flexcoders] PrintJob cutting text on datagrid
Tri dis: http://www.darronschall.com/weblog/archives/000193.cfm - Original Message - From: Mika Kiljunen To: 'Nihit Saxena' ; flexcoders@yahoogroups.com Sent: Friday, January 20, 2006 1:28 AM Subject: RE: REPOST: [flexcoders] PrintJob cutting text on datagrid Is there really no solution for this annoying printing problem or am I and the other guy the only ones printing datagrids on paper? If so I guess I have to start contacting Macromedia (or Adobe) officially to get some solution for this? In the app that we are building this could potentially cause a life threatening and dangerous situation for a real life person. -Mika From: Nihit Saxena [mailto:[EMAIL PROTECTED] Sent: 20. joulukuuta 2005 19:46To: flexcoders@yahoogroups.com; [EMAIL PROTECTED]Subject: RE: REPOST: [flexcoders] PrintJob cutting text on datagrid There is a small problem in printing text it is being followed up. Can you please resend the sample, I will check if it is related to the same. Thanks, Nihit From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Mika KiljunenSent: Tuesday, December 20, 2005 5:16 PMTo: flexcoders@yahoogroups.comSubject: REPOST: [flexcoders] PrintJob cutting text on datagrid Repost, since no answerÂ… Anyone? From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Mika KiljunenSent: 1. joulukuuta 2005 14:40To: flexcoders@yahoogroups.comSubject: [flexcoders] PrintJob cutting text on datagrid Hi, Can someone explain why PrintJob is cutting the bottom of letters like g, y,q etc?? See pic to explain. In the pic (a printed datagrid) the numbers should have text mg after them, but it has mg and the g has no bottom on it! Is there a way to fix this? -Mika -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: REPOST: [flexcoders] PrintJob cutting text on datagrid
Any news on this printing problem?? Anyone? -Mika From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Manish Jethani Sent: 20. joulukuuta 2005 20:39 To: flexcoders@yahoogroups.com Subject: Re: REPOST: [flexcoders] PrintJob cutting text on datagrid On 12/20/05, Mika Kiljunen [EMAIL PROTECTED] wrote: Can someone explain why PrintJob is cutting the bottom of letters like g, y,q etc?? See pic to explain. In the pic (a printed datagrid) the numbers should have text mg after them, but it has mg and the g has no bottom on it! I asked Nihit (the printing guy), and he thinks he has seen this problem before. Can you provide a sample that I can run on my machine? Manish -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: REPOST: [flexcoders] PrintJob cutting text on datagrid
hey Manish, I'm currently building an app. that needs to print and I've run into a similar issue as what seems to be addressed here. I was wondering if you happen to know if the reported bug is confined to DataGrids or if it extends to all containers...I believe I'm having the same prob. with a VBox I'm trying to print, any info you may be able to help me with would be greatly appreciated. -Steve Dekayd Media Inc --- In flexcoders@yahoogroups.com, Manish Jethani [EMAIL PROTECTED] wrote: On 12/21/05, Mika Kiljunen [EMAIL PROTECTED] wrote: Here comes a small sample. It has a datagrid on a popup and it needs to get printed. It seems to lose the bottom tails of g,y,p,q letters. Hi, Mika. I just confirmed that this is a known problem and has been logged as a bug. I am currently not aware of any workarounds. Manish -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: REPOST: [flexcoders] PrintJob cutting text on datagrid
On 12/21/05, Mika Kiljunen [EMAIL PROTECTED] wrote: Here comes a small sample. It has a datagrid on a popup and it needs to get printed. It seems to lose the bottom tails of g,y,p,q letters. Hi, Mika. I just confirmed that this is a known problem and has been logged as a bug. I am currently not aware of any workarounds. Manish Yahoo! Groups Sponsor ~-- 1.2 million kids a year are victims of human trafficking. Stop slavery. http://us.click.yahoo.com/WpTY2A/izNLAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
REPOST: [flexcoders] PrintJob cutting text on datagrid
Repost, since no answer Anyone? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mika Kiljunen Sent: 1. joulukuuta 2005 14:40 To: flexcoders@yahoogroups.com Subject: [flexcoders] PrintJob cutting text on datagrid Hi, Can someone explain why PrintJob is cutting the bottom of letters like g, y,q etc?? See pic to explain. In the pic (a printed datagrid) the numbers should have text mg after them, but it has mg and the g has no bottom on it! Is there a way to fix this? -Mika -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: REPOST: [flexcoders] PrintJob cutting text on datagrid
On 12/20/05, Mika Kiljunen [EMAIL PROTECTED] wrote: Can someone explain why PrintJob is cutting the bottom of letters like g, y,q etc?? See pic to explain. In the pic (a printed datagrid) the numbers should have text mg after them, but it has mg and the g has no bottom on it! I asked Nihit (the printing guy), and he thinks he has seen this problem before. Can you provide a sample that I can run on my machine? Manish Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] PrintJob cutting text on datagrid
Hi, Can someone explain why PrintJob is cutting the bottom of letters like g, y,q etc?? See pic to explain. In the pic (a printed datagrid) the numbers should have text mg after them, but it has mg and the g has no bottom on it! Is there a way to fix this? -Mika -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] printjob - dagatrid - Problem
Hi, my problem is that I want to print only a record set. here is my datagrid (myDataGrid) == From | subject| date | == pippo | ciao | 20.06.05| -- pluto | Hello| 12.04.05| -- paperino | Bonjour | 27.01.03| -- topolino | Ola | 22.06.05| -- I'd like to get only: myDataGrid.From myDataGrid.subject myDataGrid.Date The output (on the paper) should be like this: -- From:pluto subject: Hello date:12.04.05 -- But the printjob.addPage() seems not able to accept parameter like this printjob.addPage(myDataGrid.subject) Any suggestions? Thanks Francesco Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] printjob - dagatrid - Problem
Hi, You can create another .mxml file for print view. After firing print command, you can populate the printView.mxml from main DataGrid's dataProvider and send it to print job instead of main datagrid. I posted something similar, might help you... http://www.abdulqabiz.com/blog/archives/macromedia_flex/99.php -abdul -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of francescololit Sent: Monday, June 13, 2005 2:32 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] printjob - dagatrid - Problem Hi, my problem is that I want to print only a record set. here is my datagrid (myDataGrid) == From | subject| date | == pippo | ciao | 20.06.05| -- pluto | Hello| 12.04.05| -- paperino | Bonjour | 27.01.03| -- topolino | Ola | 22.06.05| -- I'd like to get only: myDataGrid.From myDataGrid.subject myDataGrid.Date The output (on the paper) should be like this: -- From:pluto subject: Hello date:12.04.05 -- But the printjob.addPage() seems not able to accept parameter like this printjob.addPage(myDataGrid.subject) Any suggestions? Thanks Francesco Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] printjob - dagatrid
Hi, I've a problem with PrintJob. I'm trying to print a record of a datagrid (myGridMail) using the function below but it's not possible. I can only print the datagrid completely but not only a recordset... Any suggestion? Thanks Francesco /**/ /* code */ /**/ function doPrint() { var pj : PrintJob = new PrintJob(); // Start the print job. if(pj.start() != true) { delete pj; return; } // Add pages. //pj.addPage(myGridMail); pj.addPage(myGridMail.selectedItem.body); pj.send(); // Delete print job. delete pj; } Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] printjob - dagatrid
Print the whole recordset? Perhaps you could: - setup your printjob - add the DataGrid as the current page - page through the next set of records that will fit on one page - add the DataGrid as the next page - continue this process until you've cycled through all records - print ??? - Original Message - From: francescololit [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Sunday, June 12, 2005 4:19 PM Subject: [flexcoders] printjob - dagatrid Hi, I've a problem with PrintJob. I'm trying to print a record of a datagrid (myGridMail) using the function below but it's not possible. I can only print the datagrid completely but not only a recordset... Any suggestion? Thanks Francesco /**/ /* code */ /**/ function doPrint() { var pj : PrintJob = new PrintJob(); // Start the print job. if(pj.start() != true) { delete pj; return; } // Add pages. //pj.addPage(myGridMail); pj.addPage(myGridMail.selectedItem.body); pj.send(); // Delete print job. delete pj; } Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] PrintJob frustrations
I'm trying to print some charts along with a header. In my app, the header (a GridRow) is hidden until the print function is called, but for some reason I CANNOT get the item to show in time to be sent to the printer. I tried setting up a separate function to show the header and then have the actual print function fire when the show event of the GridRow is fired. STILL it does not work. In general, I have to say that my experience with printing in Flex leaves a great deal to be desired. As reporting is a vital function in enterprise contexts, I can only hope that the print implementation is more refined in future releases. Jeff Battershall Application Architect Dow Jones Indexes [EMAIL PROTECTED] (609) 520-5637 (p) (484) 477-9900 (c) Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] PrintJob frustrations
Using setInterval/clearInterval seems to be a good workaround, unless someone else has something better. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Battershall, Jeff Sent: Tuesday, May 17, 2005 11:29 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] PrintJob frustrations I'm trying to print some charts along with a header. In my app, the header (a GridRow) is hidden until the print function is called, but for some reason I CANNOT get the item to show in time to be sent to the printer. I tried setting up a separate function to show the header and then have the actual print function fire when the show event of the GridRow is fired. STILL it does not work. In general, I have to say that my experience with printing in Flex leaves a great deal to be desired. As reporting is a vital function in enterprise contexts, I can only hope that the print implementation is more refined in future releases. Jeff Battershall Application Architect Dow Jones Indexes [EMAIL PROTECTED] (609) 520-5637 (p) (484) 477-9900 (c) Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] PrintJob() with DataGrid Timing Issue
Has anyone had any problems with a datagrid not being resized before being printed? Basically, within the print function, I find out what size the page is and resize the datagrid to the available space. However, it doesn't get resized before the .addPage() is called, so the printed page uses the previous size. Since I can't call pj.start() ahead of time, I'm not sure what else I can do, unless there is a way to delay within a function. Any ideas / suggestions / examples would be GREATLY appreciated. Thanks in advance! Here is my function (page is simply a canvas with a VBox): function printPage() { pj = new PrintJob(); if(pj.start() != true) { delete pj; return; } _parent.width = pj.pageWidth; reportVBox.width = pj.pageWidth; printDataGrid.width = pj.pageWidth; _parent.height = pj.pageHeight; reportVBox.height = pj.pageHeight; printDataGrid.height = 700; this.redraw(); pj.addPage(reportVBox); pj.send(); delete pj; } Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] PrintJob()
I am trying to print an mlmx file at the same level as the one calling the printjob. Here is my code: public function testPrintJob():Void { var printJob:PrintJob = new PrintJob(); var help:Help = new Help(); mx.core.Application.alert(testProperty : + help.testProperty); printJob.start(); printJob.addPage(0); printJob.addPage(help); printJob.send(); delete printJob; } Help.mxml is the object being created in the 2nd lineof the method and it is being created correctly as I can read the properties of the file through an alert on the next line, bit I am only getting the 1st page which is using 0 as the object path (_root). I have tried using help with and without the quotes and can never get it added as a page. Anyone have any ideas ? Rich Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/