Thread editor in perl 0.3.n: hurra
(630 answers)
Opened by zipster at 2005-10-21 17:46 Code (perl): (dl
)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 =head2 OnPrintPage wxPrintout::OnPrintPage bool OnPrintPage(int pageNum) Called by the framework when a page should be printed. Returning false cancels the print job. The application can use wxPrintout::GetDC to obtain a device context to draw on. =cut sub OnPrintPage { my( $this, $page ) = @_; my $dc = $this->GetDC(); # ... ToDo } # /OnPrintPage 1; Die Frage ist, wo ich ausrechne, wieviele Seiten das Dokument hat und welcher Text auf welche Seite kommt. Soll das in den Konstruktor oder in die Methode GetPageInfo? Grüße, pktm PS: ich dachte, registrierte Benutzer dürften mittlerweile schon bis zu 10.000 Zeichen :( http://www.intergastro-service.de (mein erstes CMS :) )
|