Adobe Flex provides a great functionality to print date especially with the DataGrid printing which enables you to print data in a grid view. You can even find many examples on how to use it. Most of the time is even simple to use for small projects.
The most requested functionality or even example was on how to preview the report before the user sent it to the printer.
I have searched for days hoping to find something suitable for previewing the data before print or PDF preview but I just found incomplete examples and pieces of code that led me nowhere.
Therefore I had to build my own print preview tool while I was working on our KreatX ExcellentGrid. This extended grid component has many functionalities and components that were design to be loosely coupled this was also the case of print preview tool which resulted to be a entirely reusable anywhere with any DataGrid or AdvancedDataGrid.
This example illustrates how the user can select a range of rows or the entire data set from the AdvancedDataGrid (or simple Flex DataGrid) and enables the user to hide or show the desired columns before print preview. The print preview window/tool reflects the changes instantly by calculating the dimensions and the number of pages and finally printing.
Flex doesn’t have the capability to communicate with installed printers there fore the user must select again the size and layout of the print, in other words the flex printing tool is just a preview of what it can print but not the end result if the user doesn’t select those options again.
This might be the only completed printing utility you can find for free online. Check it out by clicking on the image.
Besides printing, our application provides the possibility to generate PDF directly in the client side in the same preview window. In this example you can find useful code for an image screen capture of the preview to pdf generation.
Check out the example here
and the Print Preview SOURCE code of the printing component here
FOR THE ENTIRE SOURCE CODE, FLEX PROJECT ZIP, request it through comments below.
Please NO GMAIL accounts because I can’t attach zip files.
You may contact me any time if you need some extra help integrating the code or for that matter anything related to Flex and ActionScript 3.
Happy coding.


Good idea Kreatx:) good luck in your job as a good software company in Albania.
Great work, I will share this component in my team, and use this in my company’s project, thank you avenir !!! If I hava any problem I will ask you ,- – !
I hope this Flex DataGrid Printing and PDF generation component will be useful for your work, let me know if you need anything related to source code or other stuff related to flex, we have a very experienced team at KreatX that would be happy to help out.
Can you please send the source code to seejaff@yahoo.co.in
I have already sent you the source of the project to the email address you specified, for any questions or comment feel free to ask. Even though the project is a full solution to datagrid printing and pdf generation.
Pls send the source code project to my email address hailongshih@gmail.com,and I appreciate in advance
Great work, Can you please send source code to balaji_giga@yahoo.co.in
Pls send the source code project to my email address vickranth.navalar@yahoo.com,and I appreciate in advance
HI i need to build my application sir ,,,,,,,,so i need u r source code ….
email id ..srkvsivagiri@gmail.com
Hi, Great work! can you please send me the code source. thank you in advance for your help.
please provide me with a different email address that is not a gmail account
Hi its Great work ! i tried to implement in project , but am unable to find “print option” component in given source. can u please share source code to this mail id : “baltha.praveen@rediffmail.com”. it could be great help for me ,Thanks Advance.
Praveen.B
Please, send me Flex project in e-mail
TO ALL, PLEASE NO GMAIL ACCOUNTS, because it doesn’t allow me to send zip/rar through email attachments
please send me the flex project, thanks. @aretsusandori@rocketmail.com
Hi, Great work! can you please send me the code source. thanks and God Bless!
Please, send me the Flex project source. that is great work! thanks.
onrelease@hanmail.net
Let me know if didn’t receive my email with the source, enjoy guys
good work
and i need the demos thanks
Thank you for sharing.. I searched many for the same but this one is the best among ALL… nice work…
Please provide me Flex project source.
Let me know if you didn’t receive an email from me with the source.
could you please send me the full source code.
Can you please send me the source!!! This is excellent katiyani_oz@yahoo.ca
Just what I was looking for…… Great job!!!!!!
Please send me the code.
Very nice !!! Thanks for sharing. Please provide me your source code. Thanks
Thanks for sharing………please send me the flex project, thanks. mingyuzhanshen@163.com
please send me complete code of this
plzzzzzzz
Thats very great idea can u send me thats code at kashaf_farooqi@yahoo.com
Nice work! It provides several functions the same as Flexicious. Appreciate it is FREE.
I need THE ENTIRE SOURCE CODE, FLEX PROJECT ZIP. Could you pls do me a favor to send it to my mailbox? pqsbbs@163.com
can you give me a samplecode ? to my Email 564940585@qq.com
Hi,
Please snd the flex project ( pdf and print ) in flex
Very nice !!! Thanks for sharing. Please provide me your source code. Thanks
Hi,
Please snd the flex project ( pdf and print ) in flex
please provide a different email address other than a gmail account
Looks really good, can you please send me the code source.
Thanks
It is great.
May I have the chance to look up the project source ?
Thank you.
Great…
May I have the source ?
Thanks.
Avenir, this is great!! I would absolutely love to see the source! vegor59@yahoo.com
Thank you!
please send me the flex project, thanks
xuhuanchao@163.com
Please send me the project zip file. My email is rkodumagulla@gmail.com
Can I see your code? please help me.. send me a sample code to ado@gramediapublishers.com
Many Thanks for your Code
Regards’
Ado
Hi please send your complete code (zip) to my mail id
my mail id is : fair.faisal@rediffmail.com
Thanks for your response…..but i didnt receive any code….
sorry i forgot to attach the file, please check again.
Hi….nice work…please can send me your full code (zip) file to my mail id…: flexfaisal@yahoo.com
Please send me the full code on schyns2003@gmail.com
thank in advance
please no gmail because i can’t attach rar files to gmail
Hi,
Can you please send the code for this sample. Thanks in advance…
Regards,
Anju
sorry, my mail id is anju@esynctraining.com
Good afternoon.
Very good your post. I wonder if you could send me the full source.
Grateful.
Congratulations, your print preview is fantastic!!
can you, please, send me Flex project in e-mail?
Thank’s
Hi please send your complete code (zip) to my mail id
my mail id is : ljj1010@nate.com
I would greatly appreciate your source code. Thanks for you great work.
Hi, Can you please send the code for this sample. Thanks in advance…
h_1688@163.com
wow, really cool code, this is what I already search for long time. Can you supplied me with the entire code? Thank you very much
Hi, nice one.Please send me the zip in my email id roulcse@gmail.com
Please send me entire project file. thank in advance.
Hi,nice work,i have similar requirement in my project,please send me the code ,its very urgent
my mail id is mail2satyasri85@yahoo.com .
Hi please send your complete code (zip) to my mail id
my mail id is :jitender.tiwary@smartfincon.com
Would you please send me the entire source code. Thank You!!
Please send the zip file of the entire code. Thank you!
Very nice! I would like the code if possible. Thanks
Can you please share the project source… psham81@gmail.com
COULD YOU PLEASE PROVIDE THE ENTIRE SOURCE CODE, FLEX PROJECT . THANK YOU!!!
Pls send the source code project to my email address amsuarez@gmail.com
and an example how to use it…
Hi,
Could you please share the source code files?
Thanks,
Anju
Sir plz send me your Project as soon as Possible
Thanks in Adv
Hello Sir
You have done a very good programming on flex printing.Requesting you to please send me the
ENTIRE SOURCE CODE, FLEX PROJECT ZIP.It would be a great help.
Thank you so much.
Hi, would you be so kind and send me your Project . Thanks in advance…
I would be grateful if you could send me THE ENTIRE SOURCE CODE, FLEX PROJECT ZIP. Thank you for sharing this code.
please no gmail accounts
Hi, You print preview is wonderful,
would you be so kind and send me your Project . Thanks in advance…
It would be grate if you could send me source code of your entire project Thank you for sharing this code.
onurbasal_tr@yahoo.com
Hi, great work man! Can you send me the entire source code? Thanks
Can you please share the project source… n3609@nate.com
great work.
can u send the exported zip to my email
subrahmanyam.sakhamuri@gmail.com
other mail
sakhamuri_sss@yahoo.com
Great work. Can you please send me full source code…
great work.
can u send the exported zip to my email
sakhamuri_sss@yahoo.com
Hi,
I was searching for the way for export grid to pdf and I got your post.
I am very pleased with your source code but need some help.
Can u send me the zip file of this project?
Thanks in advance
send the code on anishkumar0708@gmail.com
nice work friend,
can you mail me full course code and will it work on flex 4.6?
abhishekchess1@gmail.com
plz send me the project zip file…,thank you
plz send me that on cn.bharath@yahoo.com ….,
the email address is not correct please resend me the email so that i can send you the source
can u plz mail me the source code
please send the zip(print preview) file to this email id
b.vasi@yahoo.com
sir, pls mail me the source code of this
can u pls mail me this…
pls mail the source code to
gide_live@live.com
Very nice !!! Thanks for sharing. Please send me thats code at onellrr@hotmail.com. I need THE ENTIRE SOURCE CODE Thanks.
please mail the source code to
nylee@kumhoht.co.kr
Excellent work.Ca you mail me the entire code in zip format to my mail id
ramkumarnalluri@hotmail.com
Thank you sir,for the quick reply.
The code is generating PDF for all pages well.But when it comes to printing , the code is printing current page only.
it is not working for all pages & given page range.(both options are disabled)
Could you please modify the code and resend the code again?
mail id ramkumarnalluri@hotmail.com
Pls Mail The Source Code….
Pls Mail The Source Code….
spk.kiran@yahoo.com
Hi
Nice example!!, I appreciate if you could send me the code pe_ens@hotmail.com
Thanks!!
can u sent me the source code?? g_lanks_02@yahoo.co.id
thanks b4
Can u please send me the source to the following email id bibin.9.joseph@gmail.com
its a good work its very helpful for the Flex developers, can u please send me the code in below mentioned email bibin.9.joseph@gmail.com
Hello Avenir Ace Cokaj,
Great Work!!!!!!!!!!!!!!!!!!
please send me the Complete Source code at this mail id -> kiledar2006@rediffmail.com
Hi , its a good work.. can you please send me the source code to the following email id bibin.9.joseph@gmail.com
Please send me whole source code to dimplesi2705@yahoo.co.in
Please send the code on fabiomusico92@hotmail.com
Can you please send the source code to oe.lejeune@free.fr
wonderful!Could you send your sample code to lyh7609@msn.com?Thanks!!!!
Matur thank you mister
Hi! Greate Work! Can you please send the source code to rcanales10@hotmail.com
Thanks!
999 roses for you. Thanks a lot! Please send me begnaburm@yahoo.com
please send full project source .zip
I wish to use this example T^T
-> feelipak@naver.com
please send to feelipak@naver.com full project source
I really need to this project source T^T
Great work, please share me the project to sjaikrishs@yahoo.com.
Thank you
Hi please send your complete code (zip) to my mail id
my mail id is : juliano@kjdesign.com.br or julianodesigner@gmail.com
Very good job… can ou send me the project please?
almeidato@hotmail.com
Thank you.
awesome, would you please share the project to iwannahero@sina.com, so many thanks
Could I get a copy of the source?
Please send me the Code to info@bomk.de
THX
Hi. Great Tool. Please can you forward source to sugan @ dev-x .co .za
Thanks! Rgs. Sugan
Please Provide me code.
Please send me source code thanks in advance.
Great Work. Please send me the code
Great work…. It is really helpful… Thank You….
poderia por favor enviar o código para imprimir pdf. grato!
bruno.borges.ruiz90@gmail.com
Dear Avenir,
Greetings from Brazil and Congratulations for your work!
Could you please provide me the entire source code and Flex Project zip?.
Thanks an advanced,
Paulo Omai
i want the full source code please, i think you are genious.
It’s Awesome
Can you please send me the Full source code dude!
My email: shravansofts2011@gmail.com
It’s Awesome
Can you please send me the Full source code dude!
My Email: shravansofts@yahoo.com
Can you please send me the Full source code?
My e-mail: otaciliolacerda@hotmail.com
Great job! I’m new to Flex and I find it quite difficult to implement a good printing module within Flex. What I find amazing from your solution is the speed it takes to generate the preview and the actual job print. From what I’ve learned in this area takes an eternity before I get something printed out.
Could you please send me the Full source code? I would like experiment on the intricacies of implementing such a functionality within Flex.
My e-mail is: d.lec@datamaxbr.com
Kindest regards and thanks in advanced!
Dan
Excellent work Avenir Ace Cokaj, could you send me the source code for email padu_monaco@hotmail.com?
I’m racking my brain to construct a component of a report to my boss asked.
tks
Adilson (from Brazil)
could you send me the source code for email padu_monaco@hotmail.com ?
Thanks Avenir.
HI plz share the source code
rahultnath@yahoo.com
HI plz share the source code
bay_mehmet80@hotmail.com
Hello Sir,
i am working on a image splitting project, so i have to split a large image into many pieces(A3,A4,Letter). after that i have to send all split pieces for printing. but it will working only in firefox & internet-explorer, not working fine in google chrome.
so i need your source code to implement the same code in my project. please send me the full source code with any available example on this mail id–>
garg_ashutosh@live.com
please send it urgently.
Thanks & Regards
Anoop Singh
Could you please forward a copy of the code and any documentation that you might have. Thank you.
can u send code for flex 4.6 sdk ?
PDF not working in it
abhishekchess1@gmail.com
Hi, what an amazing component! Great great work! Can you please send me the library on this email: paren.tipesca@yahoo.com. Thank you in advanced!
Hi Avenir, thank you for your prompt reply and thank you for the code. I really appreciate it. Keep up the good work, God bless.
Great work… Can u please mail the complete source code??
Thanks a lot for code…. Its really very helpful…
great demo, can you please send the library’s. Would love to use your reporting tools
white_ruby_13@yahoo.com
i would like to request the source code please email it to spicyradio@hotmail.com. I would like to add one question, does this only work for DataGrid? I wanted to know if i can use this to generate/print all my contents in a SCROLLER rather than a DataGrid?
It is just for a grid, i don’t think it can help with list or renders.
Is it possible to request your assistant with this source? What i need assistance with is the orientation, i just switched it over to use PrintDateGrid instead of AdvancePrintDataGrid, the only problem i am having is that my DataGrid has about 35 datafields, and when i generate the PDF file everything looks jammed up, how can i correct this either using landscaping or another method? I just need to get this to fit somehow.
What i would suggest is you could separate your columns in many print jobs this way your columns are not smashed all together. There is no solution to fitting 39 columns in a single.
Hi, please can you email me the full source project , so that i can quickly see how to integrate the tool with my project. thnks
Hi,
Can you please send me the source code to this email: sunilflexi@gmail.com. Thank you in advanced!
Hi,
Can you please send me the source code to this email: sunil_coll@yahoo.co.in. Thank you in advanced!
no gmail please
Avenir, this is great!! I would absolutely love to see the source! vaibhav490@rediff.com
Thank you!
Reply ↓
Hi I was searching for this component. Please send it to my email address.
Thanks
Hi
I was searching for this component.
Thanks
Hi , its a great work.. can you please send me the source code to this email.
Regards
I need your source code. Thx.
Hi Congrats you project is one of a kind, i will love to have it in my project. Can you please send me the source code.
please no gmail because i cannot attach zip/rar files
Sorry i missed that part, please send it to my yahoo chaddy012@yahoo.com
Sorry i missed that part, please send it to my yahoo chaddy012@yahoo.com thank you
Need to open the generted PDF in same application not in another window.
Great Job buddy
Can you provide me with the full Source and attached components (swc) if any ??
I am very please to run it.
Thank you for your help
Regards
David_L
Please send me the code to smurf2312@hotmail.com Thanks for the good work.
could it be possible to create the pdf with link to other documents ?
Please send me a copy of the full source. Thx in advance : )
Great work, Can you please send source code to rarfoxi3.tj@inbox.ru
Please send me a copy of the full source. Thx in advance : ) vickranth.navalar@yahoo.com
Great Work !! can you send the link of source?
Great work. Can you send source file to subash@keyslab.com
Great…
))
Please send me full source code…
Thank you!
Please send me full source code…
Thank you!
hi, can u send me the source code of this? then it will be very helpful for me also. i’m using IBM elixir task chart,resource Chart to print.
thanks..
Awsome Job,
can i have the full source code too?
my email is hicham@surfaumaroc.com
TX
Thanks for this. Can you please send me the source code and sample as well? Thanks a lot in advanced.
Loved the example, great job! Can you please send me an example on how to implement this? tunay_sr@hotmail.com
Could you please send me the source code? Really appreciate it! KEep up the good work.
Hello. Can you please send me a copy of the source code. I am actually interested in the PDF generation piece, as I am trying to figure out the best way to download a PDF from the web server and print it through flex.
PS: I know I can do it by using an iframe in the browser window that is hosting my flash component. I.E.: load the PDF in an iframe, and then invoke the browser “print()” command. But, for reasons I won’t get into, I need a solution that does not use the browser or javascript interfaces.
Thanks in advance.
Please send me the full source code to dd@drummond.id.au
Hi,
Thanks for developing an essential component. Please email me the source code at ravichandran.j@v2softindia.com
Best Regards,
Ravichadnran J
if u have complete code can you send me…pls
really it is greate job,can you send the complte code.
Pls send the source code project to my email address fernandobande@hotmail.com