Re: formatting GtkCList for printing -- please help



G'Day !

I also have the need for this so let me know what you find out.

Many years ago I fiddled around with the formatting available in the
standard C library for the printf family.  I do know you could come up with
 a pretty ugly hack using printf formatting, if desperate.

As for elegant solutions, ....

cheers,
Jim Parker

On Thu, 25 Apr 2002, randylhess netscape net wrote:
Date: Thu, 25 Apr 2002 14:09:37 -0600
To: gtk-app-devel-list gnome org
From: randylhess netscape net
Sender: gtk-app-devel-list-admin gnome org
Subject: formatting GtkCList for printing -- please help

I am not sure if this is the right place to ask, but can't seem to find 
a good answer anywhere.

The situation -- Small Non-profit training organization, needs registrar 
program and mailinglist database program.  Commercial registrar program 
$20,000, plus dedicated expensive equipment.  I was the closest one to a 
programmer they had working for them.  In Jan this year, I started 
learning C and MySQL and started using glade in Feb.  Cannot find how to 
properly format things for nice output on a printer.

Already looked at -- Main books read are "Teach Yourself C for Linux 
Programming in 21 Days", "MySQL", and "MySQL Building User Interfaces". 
 Searched the web through several search engines, searched archives of 
mailing lists, read header files of glib, gtk, read FAQs and tutorials 
online.  Not much help.  Some with fprintf but no real formatting.  I 
also searched sourceforge.  I tried looking at openoffice source, but it 
is in C++ and I was having a hrad time finding where the real print 
formatting is done.  I just discovered gnome-print and Pango. 
 gnome-print appears to be unix/linux only.  Is pango what I need to 
use?  Does someone have sample code I could modify for this project?

I need to format a GtkCList to print on standard Avery mailing labels 
(the most urgent need) and I need to format a GtkCList to print as a 
transcript.  (Everything else that needs to be printed doesn't need any 
particular formatting.)  This is why fixed width fields within a line 
are needed.  Also, I need to select the font family, size, bold or not. 
 I need to set the margins.  The code needs to be portable between 
windows and linux as much as possible.  I have to have it running in 
about a week from now, at least with the printing for mailing labels. 
 If someone already has code for something like this, I would appreciate 
very much having a copy to look at and tweak for this project.

Any help that you can give would be greatly appreciated.

Randy Hess

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]