How to make a JFreechart to be printed on a PDF from iReport?

Hello everyone,
I'm working on an application, which has in one of its Panels an animated JFreeChart Model [*chart = ChartFactory.createBarChart3D*], in which a 3D Bar chart is initialized(which bars are animated) to get at last a dual axis graph with 3D view Bars. While I was working to implement producing a Jasper report from the results, I couldn't find a solution which let me print the results of the chart on a report. After looking at some posts, I tried to save the chart as an Image, then to call this image as a parameter on the iReport. But the problem was, either i got an image totally black while using this [chart.createBufferedImage(width, height)], or I got only the background of my graph without its content (bars and their values) by using [ChartUtilities.writeChartAsPNG].
Does anyone has an idea to help me?
Thanks in advance.

Image chartImg= jfc.createBufferedImage(200, 200, BufferedImage.TYPE_BYTE_INDEXED,null);
parameters.put("image", chartImg); //image is a ireport parameter declared as java.awt.image

Similar Messages

  • How to make my HP 5150 to print in color with iMac with 10.9 OS

    How to make my HP 5150 to print in color with iMac with 10.9 OS

    Read the user manual that came w/the printer and/or contact HP Support. 

  • How can print a file PDF from  form

    Hi to all,
    I need to print a file PDF from form (developer 6i), Is IT POSSIBLE?
    Thank you
    Silvia

    "Print" probably won't work for a pdf file. As the HOST command try:
    host('<path_to>/AcroRd32.exe /t pathname "printername" "drivername" "portname"');See "How do I use the Windows command line with Acrobat and Adobe Reader?" in:
    http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/Acrobat_SDK_developer_faq.pdf

  • How to make a remote panel file dialog open remote directory from any computer

    Hello to everybody. I am using Labview 6.1 and I would like to know how to make a remote panel file dialog open remote directory from any computer (Not only from a specific computer. If I open the file with a specific computer, I have to conect the path of the remote machine, but if I don´t know which remote computer is going to run the aplication, how can I do it?)?

    Hi!
    first you have to know progammatically the name of the remote pc connected to your server: this is a problem!
    I did not find a straigth way, LV 6.1 doesn't allow much progammatic control on the remote panel connection feature, but I'm confident that in the next LV version this will be improved!
    The point is that the Remote Panel Connection Manager (from the Tools menu) has all the informations about the connection: client name, server vi and whatever.
    This application is embedded in the \PROJECT\REMOTEPANEL.LLB and consists of a set of password protected vis.
    So here's the trick: use VIServer to grab data from the rpcm Get Server Data.vi when the Remote Panel Connection Manager is in run mode. By this you get all the informations (not only client name)o
    f the remote panel connection. See my example.
    By the way use client machine name to build the file dialog function input path.
    If anybody has an alternative method it would be more than appreciated to share it.
    Good luck,
    Alberto Locatelli
    Attachments:
    get_remote_machine_data.vi ‏151 KB

  • Printing to a PDF from Microsoft Word

    I need to print to a PDF from Microsoft Word. Is there any way to do so in order to have the hyperlinks in the Word document show up and work in the PDF?

    Finally found an answer. The secret is to NOT use the Print function at all, but click the Acrobat Tab in MS Word, then select Preferences and make sure the Links option is ticked, then Click Create PDF. The hyperlinks transfer that way, but not through using Print/Acrobat.

  • My Acrobat 8 Pro is failing to print to a pdf from multiple software.  I get an error message that a repair fixes but only for a little while.  Pretty soon the trial version of 9 that I installed pops up telling me it has expired but it would take me to a

    My Acrobat 8 Pro is failing to print to a pdf from multiple software.  I get an error message that a repair fixes but only for a little while.  Pretty soon the trial version of 9 that I installed pops up telling me it has expired but it would take me to a way to buy a valid serial number and then 8 stops working again.  I’d be happy if the 8 I paid for worked right or I could get 9 for a small cost but I cannot afford $450 or $20/month.  I need a permanent solution that I should be already paid for with 8 pro.

    After multiple repair procedures with reboot in AA8 I was eventually able to restore the printing to pdf function from various software.  However I have again lost my Acrobat tab in Outlook 2007.  I need that back, but today an even bigger problem arose.  AA8 has stopped printing to fax.  It faxes a blank page.  The only fax printing option is “Microsoft Shared Fax Driver”.  My fax software is “Windows Fax and Scan” and it was working fine just a couple weeks ago.  My OS is Windows 7 Professional.
    I have tried doing the updates you referred to but I get error messages like these:
    “No qualifying products found to apply this update, or update has been already applied”
    or
    “The upgrade patch cannot be installed by the Windows Installer service because the program to be upgraded may be missing , or the upgrade patch may update a different version of the program.  Verify that the program to be upgraded exists on your computer and that you have the correct upgrade patch.”

  • Can you print password protected pdfs from an ipad?

    can you print password protected pdfs from an ipad?

    This may help, but I do note that the printer you state is NOT on the airprint list. You may need to go to the app store and see if Canon has an app that will facilitate printing on a non AirPrint device.
    http://support.apple.com/kb/HT4356

  • How to make a CD Jacket and print out Song order directly from playlist

    I was wondering if there was a way to make a CD Jacket with artwork from songs selected and also how to make a same size sheet to fit in the CD holder that has the exact song order and titles by printing out directly from your playlist.
    I am not sure I worded that right but hopefully you will know what I mean.
    Any help would be greatly appreciated.
    Thanks

    There is a pretty basic CD insert that you can print from iTunes, if I remember correctly it will print whatever artwork is attached to the first song in the playlist.
    Open iTunes, highlight the playlist in question, go to File>Print and choose the CD Jewel Caser Insert radio button. Theres also a little Theme menu.
    However you can get much more flexibility from a dedicated CD Cover program. I use Cover Star, it's inexpensive and makes good quality CD booklets, back covers and disc overlays. It will generated artwork for you or you can drag your own picture files to it. You can download a trial version from this link: http://autostylus.com/coverstar.html. It's fully functional apart from printing so you can play around with it and save the inserts until you decide if it's for you. Purchasing a license then releases the final function and anything you saved previously can be printed off.

  • How to make automatic counting number while printing

    i've create an Order Form using InDesign then i want to print it.. how to make increase document number run automaticaly while printing?? thx for your help

    Form numbering can be done in a variety of ways. For high volume jobs (or small jobs, too if you happen to own a numbering machine) the numbers are often printed separately after the forms themselves are printed.
    The next most efficient method is to use a printer with variable data capabilities that can pull the numbers from an external file and add them to the print job as it runs.
    The only way to do it directly in InDesign is to make a multipage file -- one page for each number. To do that you will need a list of numbers as a text file, one number per line. You can use this file either for a Data Merge or you can place it like any other text file. Which method is best will depend on the job itself. In either case, I would recommend putting all of the repeating text on the master page. For data merge, leave a hole where the numbers belong and apply the master AFTER you do the merge. For placing, include a frame to hold the number on the master page, apply it to page one, and use autoflow.

  • How to make playlist of the video songs I have installed from computer

    How to make playlist of video songs I have installed from computer

    What on earth do you mean by "video songs"?

  • How to make this faster?? read millions of record from txt file

    Hi there,
    I got an issue. There is a txt file contains 2 million records, I also got another file contains over 10000 numbers. Now, I need to compare this 10000 numbers with that 2 million records if any records contains a number which belongs to 10000 number set, i retrieve this record and keep it. later on, when i finish the comparison i'll write all the result records into a txt file.
    What kind of data structure shall i use to keep the records and numbers? how to make the comparison quicker? Any idea will do!
    Thanks!

    if i were to do it, i will insert bout the records into the db. then do an sql statement on the two tables to get the results. Then get the rs and output it to another text file.
    just my opinion. not sure if this is faster.
    Message was edited by:
    clarenceloh

  • Hello! How to make new folders on I pad 2 .download data from net and use it offline also .

    I do not known how to make folders in I pad 2 and use them offline2.i am using this I pad 2 for the first time. I have used windows for years and is quite comfortable with windows

    Just drag one app on top of another. Here's an article about it:
    http://www.macworld.com/article/160291/2011/06/create_organize_ios_folders.html

  • How to make the active save-to-file with the data from GPIB ?

    Hello,,everybody !!
    I want to make the active save-to-file with the data from GPIB since starting the measurement. To save-to-file at the end of measurment is somehow risky for losing the data because my measurment have to take for long time (eg. 24-48 hours).
    Thank you in advance for anybody's help !!

    Thanks Dennis,
    I have already append, I got it but still have one small problem that between each line it has the blank line. Example as below ,
    16:40:33 54.24
    16:40:34 54.23
    16:40:35 54.24
    I want to get rid of the blank line in between.. Do you have the idea about it ?

  • Print- Save as PDF from Java applet on a webpage in Safari

    I am on a Mac running OS X version 10.8.5 and Safari version 6.1.2.  I am using the website www.wordle.net, which uses a Java applet to create a Wordle. The applet has a print button.  The website FAQ says I should be able to save a Wordle as a PDF on a Mac.  When I try to do this I get a small dialog that simply says "Error whilte printing."
    Here is some of the system.log:
    Mar  4 16:57:54 Kroghs-iMac.local sandboxd[602] ([557]): java(557) deny file-write-create /private/var/folders/f0/c8r_ry6d4131x95phl6fv7kr0000gn/T/WebKitPlugin-f12Pu6/53 164c620f81b
    Mar  4 16:57:54 Kroghs-iMac.local java[557]: spawn_via_launchd() failed, errno=1 label=[0x0-0x96096].com.apple.ImageCaptureExtension2 path=/System/Library/Image Capture/Support/Image Capture Extension.app/Contents/MacOS/Image Capture Extension flags=0
    Mar  4 16:57:54 --- last message repeated 1 time ---
    Mar  4 16:57:54 Kroghs-iMac.local java[557]: ERROR: [ICCommandCenter launchAgent] - Failed to launch agent[1], status: -10810, url: 'file://localhost/System/Library/Image%20Capture/Support/Image%20Capture%20Exte nsion.app/'
    Mar  4 16:57:54 Kroghs-iMac.local java[557]:
              ***** Failed to launch Image Capture Extension.
    Mar  4 16:57:54 Kroghs-iMac.local java[557]: spawn_via_launchd() failed, errno=1 label=[0x0-0x97097].com.apple.ImageCaptureExtension2 path=/System/Library/Image Capture/Support/Image Capture Extension.app/Contents/MacOS/Image Capture Extension flags=0
    Mar  4 16:57:54 --- last message repeated 1 time ---
    Mar  4 16:57:54 Kroghs-iMac.local java[557]: ERROR: [ICCommandCenter launchAgent] - Failed to launch agent[1], status: -10810, url: 'file://localhost/System/Library/Image%20Capture/Support/Image%20Capture%20Exte nsion.app/'
    Mar  4 16:57:54 Kroghs-iMac.local java[557]:
              ***** Failed to launch Image Capture Extension.
    Mar  4 16:57:54 Kroghs-iMac.local java[557]: spawn_via_launchd() failed, errno=1 label=[0x0-0x98098].com.apple.ImageCaptureExtension2 path=/System/Library/Image Capture/Support/Image Capture Extension.app/Contents/MacOS/Image Capture Extension flags=0
    Mar  4 16:57:54 --- last message repeated 1 time ---
    Mar  4 16:57:54 Kroghs-iMac.local java[557]: ERROR: [ICCommandCenter launchAgent] - Failed to launch agent[1], status: -10810, url: 'file://localhost/System/Library/Image%20Capture/Support/Image%20Capture%20Exte nsion.app/'
    Mar  4 16:57:54 Kroghs-iMac.local java[557]:
              ***** Failed to launch Image Capture Extension.
    Mar  4 16:57:54 Kroghs-iMac.local java[557]: spawn_via_launchd() failed, errno=1 label=[0x0-0x99099].com.apple.ImageCaptureExtension2 path=/System/Library/Image Capture/Support/Image Capture Extension.app/Contents/MacOS/Image Capture Extension flags=0
    Mar  4 16:57:54 --- last message repeated 1 time ---
    Mar  4 16:57:54 Kroghs-iMac.local java[557]: ERROR: [ICCommandCenter launchAgent] - Failed to launch agent[1], status: -10810, url: 'file://localhost/System/Library/Image%20Capture/Support/Image%20Capture%20Exte nsion.app/'
    Mar  4 16:57:54 Kroghs-iMac.local java[557]:
              ***** Failed to launch Image Capture Extension.
    Mar  4 16:57:54 Kroghs-iMac.local java[557]: spawn_via_launchd() failed, errno=1 label=[0x0-0x9a09a].com.apple.ImageCaptureExtension2 path=/System/Library/Image Capture/Support/Image Capture Extension.app/Contents/MacOS/Image Capture Extension flags=0
    Mar  4 16:57:54 --- last message repeated 1 time ---
    Mar  4 16:57:54 Kroghs-iMac.local java[557]: ERROR: [ICCommandCenter launchAgent] - Failed to launch agent[1], status: -10810, url: 'file://localhost/System/Library/Image%20Capture/Support/Image%20Capture%20Exte nsion.app/'
    Mar  4 16:57:54 Kroghs-iMac.local java[557]:
              ***** Failed to launch Image Capture Extension.
    Mar  4 16:57:55 Kroghs-iMac.local java[557]: Printing failed because PMSessionBeginCGDocumentNoDialog() returned -108.
    I've removed the Adobe plug-ins from /Library/Plug-Ins
    Print->Save to PDF works from Safari when I am on a regular webpage.
    Print->Save to PDF works from Pages
    Help!  I want to make Wordles for the teachers at my kids school for Teacher Appreciation Week.

    YES!!!!!!!
    I was pulling my hair out last night over this. I noticed the Find function was not working properly. I KNEW there was something in the PDF and Preview was not showing it. I spent 2 hours trying to find someone with a similar Find function problem, but could not find much. Also, it could not copy and paste text. I KNOW it worked before because I had taken notes on this particular PDF and had copy and pasted whole paragraphs for myself into Pages. Which is what got me searching online tonight.
    I re-downloaded the same PDF. When first opened in Preview, the Find and copy/paste functions worked. Same thing in Acrobat reader and Acrobat Pro. After confirming this, I re-opened it in Preview, highlighted some text and closed. It asked to Save Changes and I did. I immediately re-opened it, and guess what? Find no longer works and neither does copy/paste. Just to be sure, I tried re-opening in Acrobat reader and Pro; same thing. No copy/paste, corrupted Find feature. Well, copy/paste sort of functions, its just that it pastes a square with an alien head in it that says "Private Use 100000 Plane 16".
    And finally, on some PDFs that have not even been saved in Preview, the Find function is not working properly also. It happened on the re-downloaded PDF I just talked about. It finds many instances of the word, bit the left and right arrows next to "Found on X# Pages are greyed out and do not move through the document. Once I go to the left pane that displays page thumbnails and click on a few different ones, THEN it starts working.
    So yes, Apple, Preview is corrupting PDF files upon save, AND it is not working properly on other files. Please fix this. PLEASE.
    And my specs are the same as Gary; iMac 27 inch Late 2009, Yosemite 10.10.1. Is ANYONE else having this issue with a different Mac?

  • Print to RGB PDF from Freehand

    Hi everyone,
    I have been trying to work this out for a while but am only a geologist using the software for drafting purposes. I have Freehand MX on Windows XP, with Adobe acrobat 9 installed. When I print to PDF from Freehand it usually converts the colours to CMYK which is expected, but I would like them to remain RGB.
    Current Freehand settings:
    Output options: All default but I have unticked 'Convert RGB to process'
    Raster Effects: Optimal CMYK rendering is ticked but does not appear to make a difference if unticked.
    Colour Management: Kodak digital science
    Acrobat settings:
    I have tried editing the high quality print job options in acrobat distiller to 'Convert all colors to sRGB' and Document rendering intent to 'relative colorimetric'. RGB is sRGB61966-2.1.
    The only way I have successfully got to an RGB PDF from Freehand is opening the file in Illustrator CS4, and printing to PDF after telling Illustrator that the file is RGB. The conversion is still not perfect, moving text etc... and is a pain in the **** to be honest but if there was a way to go to RGB PDF from Freehand, that would make my day!
    Hope someone can help! Thanks!

    I have found only one way to do this. I'm on a Mac, so it may work differently on a PC. I find I must export to an EPS file and Distill.
    1. FHMX Color Management set to None. This can be a problem if you normally work with color management on. Colors will shift.
    2. Make sure all colors in document, including black and white, are RGB process colors. Use no spot colors, CMYK colors or Pantone library colors.
    3. Export to EPS selecting 'convert colors to RGB' option.
    4. Set Distiller color settings to 'Leave color unchanged'.
    5. Open EPS file in Distiller to create PDF.
    6. Open newly created PDF in Acrobat Pro. Colors will match FH RGB colors.
    Judy Arndt

Maybe you are looking for

  • Output error messages

    How does one do to output error messages without having to invoke RAISE_APPLICATION_ERROR? I'm trying to avoid chaining of exceptions handled by OTHERS. EDIT: I'm aware of DBMS_OUTPUT.PUT_LINE, though I am looking for a function that produces the sam

  • Jdeveloper + Jboss 4.0.3SP1

    Hi, I´m trying to create a connection to a JBOSS AP 403sp1. i was able to create a connection to the JBOSS AP server but couldn´t install the ADF Runtime for JBOSS. The ide shows a message saying that it is not a valid jboss home. however, it lets me

  • Why Mac Mini if started up with monitors switched off looses Mouse settings?

    Hi, I have a late 2012 Mac Mini connected to 2x LG HD monitors (one with thunderbolt adapted to HDMI and one on HDMI). Every morning I switch on the computer but sometimes I forget to switch on the monitors. If the machine boots without monitors I ge

  • SUBMIT a report passing a selopt

    Hi all gurus, I'm facing this strange issue: Report A, a.k.a. the caller, has a select-option as input parameter, defined in this way: SELECT-OPTIONS: so_objid FOR crmd_orderadm_h-object_id. This report performs a sequence of SUBMIT statements on oth

  • TS3274 delete button doesn't work

    I have been trying to delete multiple photos that I imported from my Macbook. It will let me select the photos, but when I touch the red delete button it does nothing. What should I do?