[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


How to insert a JPEG image in a C program

Posted on 2006-03-30
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.
Question by:bweit
LVL 51

Accepted Solution

ahoffmann earned 1000 total points
ID: 16340085
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
LVL 27

Expert Comment

ID: 16340315
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)?

Author Comment

ID: 16343852
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?
LVL 38

Assisted Solution

yuzh earned 1000 total points
ID: 16367013
For barcode printing, please have a look at:

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
In this post we will learn different types of Android Layout and some basics of an Android App.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Integration Management Part 2
Suggested Courses
Course of the Month19 days, 7 hours left to enroll

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question