Gtk::PrintOperation prints only first page

greetings,

i print the pages on Gtk::PrintOperation’s ‘draw-page’ signal, and since
i don’t know how many pages i’m going to print, i’ve n_pages set to 1
before the first page, and i increase that from ‘draw-page’ if there’s
more pages to go.

this works fine if ‘print preview’ was selected from PrintOperation’s
run, but only the first page is printed when ‘print’ is selected.
it looks like ‘draw-page’ does not get called when in print mode.

devs, please confirm this, and if so, please make ‘print’ as it is in
‘print preview’
thanks,

regards,
balint


Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net’s Techsay panel and you’ll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

Hi,

In [email protected]
“Re: [ruby-gnome2-devel-en] Gtk::PrintOperation prints only first
page” on Thu, 18 Jan 2007 15:26:08 +0200,
Dobai-Pataky Bálint [email protected] wrote:

i figured out, i’ll have to save my cairo context generated in PrintOperaion’s
paginate, and reuse it in draw-page, but i don’t know how to clone it.
i searched rcairo for a proper Cairo::Context.new, but found out that it needs
a surface first, and i got stuck there.
if anyone has any ideas how should i transfer the Cairo::Contexts from paginate
to draw-page, please help me out.

You can’t clone a Cairo::Context. You need to reuse your
drawing operations instead of Cairo::Context. I can’t have
any advice until you show us your sample script. (I hope the
sample script is as small as possible.)

Thanks,

kou


Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net’s Techsay panel and you’ll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV


Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net’s Techsay panel and you’ll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs