Java programming tutorial with Official Hord - Java Reports with IText Library [Adding Image]

in utopian-io •  6 years ago  (edited)

What Will I Learn?

  • You will learn to add an image directly to your report using
  • Image reportimage = Image.getInstance("Imagename");The method .getInstance() here copies the image properties of the image you have selected into the image you are creating to be added to the report.
  • report.add(reportimage);This then adds the new image you have created to the report, looking exactly the way the one you have selected is, because it has been copied into the new image.
  • You will learn to upload an image first before adding it to the report using JFileChooser imadechooser = new JFilChooser(); which opens a file chooser frame where you can select a file, and other methods that follow before finally adding the selected file to the report using previous report.add(reportimage);which adds the image to the report.

Requirements

  • Netbeans IDE
  • Itext API Jar

Difficulty

  • Intermediate

Description

Adding images to reports make them look better and more organised than plain text reports, therefore In this tutorial, I have explained two different ways to easily add images to your report to make them look better.

Video Tutorial

Curriculum



Posted on Utopian.io - Rewarding Open Source Contributors

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Thank you for the contribution, @official-hord. It has been approved.

I know that you are working to improve your sound quality. Thank you for working on this. This tutorial has some distracting sound distortions. I look forward to hearing your improved audio.

You can contact us on Discord.
[utopian-moderator]

Thanks man

Hey @official-hord I am @utopian-io. I have just upvoted you!

Achievements

  • You have less than 500 followers. Just gave you a gift to help you succeed!
  • Seems like you contribute quite often. AMAZING!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x