cplusplus.com cplusplus.com
cplusplus.com   C++ : Forums : UNIX/Linux Programming : Printing Text & Graphics
  Search:
- -
C++
Information
Documentation
Reference
Articles
Sourcecode
Forums
Forums
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Articles
Lounge
Jobs

-

post  Printing Text & Graphics

sheppie68 (1)
Hello,

I am writing an application for Linux and need to generate a daily report. Currently I put all of the information into a text file and then send it to CUPS to print. I'd really like to include a JPG graphic on the report, but don't know how to do this. If anyone can help out or has an example I'd really appreciate it.

Thanks!

Ian
|
Zaita (1450)
You could get familiar with the OpenOffice file format. It's just a Jar file with XML template objects etc.

You can build your own templates and then build the file and send this off for printing. I have used this previously as a way to generate invoices and work-logs.

If you got really familiar with it, then you could write your own ODF files :)

Another object is to create PDF documents by using a PDF library or something similar to this.

Edit: You could prob even just create an HTML document and print this :)
| Last edited on

This topic is archived - New replies not allowed.
Home page | Privacy policy
© cplusplus.com, 2000-2008 - All rights reserved - v2.2
Spotted an error? contact us