We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you a podcast all about Citrix Workspace, moving to the cloud, and analytics & intelligence. Episode 2 coming soon!Listen Now


How to insert a JPEG image in a C program

bweit asked
Medium Priority
Last Modified: 2013-12-26
I need to insert a JPEG image in a C program to print every time the report is generated. The program is running on an AIX machine. Is there a way to insert the image (a barcode) to print at each of the top of the page.
Watch Question

hmm, this question is so simple and vage ...
.. I'd simply answer:

> Is there a way to insert the image (a barcode) to print at each of the top of the page.

so what is the question beside that then?
I guess you need:
  1. open the jpeg file
  2. read its content
  3. convert the content to the proper format of your printer
  4. write converted data into your page as you need

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Artysystem administrator
Top Expert 2007

Does your program generate reports and you wish to add some banner to each page?
If yes, how does your program send reports to printer (by what means)?


I'm sorry if the question seemed vague, but here is exactly what I need to accomplish:

I have a JPEG image of a barcode that needs to print at the top of the 1st page every time this report is generated, usually via VSIFAX, but sometimes to a network printer.

Do you need to see the section of code for the top of the 1st page?
For barcode printing, please have a look at:
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.