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

x

How to insert a JPEG image in a C program

bweit
bweit asked
on
Medium Priority
324 Views
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.
Comment
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.
yes

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

Commented:
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

Commented:
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?
CERTIFIED EXPERT
Commented:
For barcode printing, please have a look at:
http:Q_21039990.html
http:Q_21044375.html
http:Q_21047906.html
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.

OR

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.