🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: free.it.visual-basic
Article #1629

Re: stampa..

#1629
From: Gianni
Date: Thu, 01 Apr 2004 17:15
23 lines
1899 bytes
> devo creare, in VB6, una procedura di stampa di un documento, usando
> l'oggetto Printer.
> devo creare un'anteprima di stampa, per poi mandare alla stampante ci� che
> viene visualizzato.
> come mi devo muovere?
> ho fatto delle prove, ma non capisco come fare per non far sforare il
testo
> oltre il bordo destro...

Per fare l'anteprima io in genere uso una PictureBox che vado ad utilizzare
praticamente come se fosse l'oggetto printer, se ti crei una immagine grossa
come l'oggetto printer allora sei costretto a mettere delle scrollbar per
visualizzarla.

Per quanto riguarda il non far sforare il testo non capisco che
intendi....se usi Printer.Print stringa e vuoi che questa stringa entri in
una riga devi dividerti la stringa in tante sottostringhe, magari
scomponendo le parole e valutando con la funzione Printer.TextWidth il
numero di parole che puoi piazzare su ogni riga.

-- 
Gianni
http://www.astice.net
Technical Details
Message-ID: <07Yac.2880$hc5.71943@news3.tin.it>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!nntp-server.pubsub.com!news-out.tin.it!news-in.tin.it!news3.tin.it.POSTED!not-for-mail
References: <L7hac.122256$z23.5200369@news3.tin.it>

Show Full Headers
Complete Article Headers
X-Google-Language: ITALIAN,ASCII
X-Google-Thread: f94ee,13f39d7e5e078737
X-Google-Attributes: gidf94ee,public
X-Google-ArrivalTime: 2004-04-01 09:15:49 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!nntp-server.pubsub.com!news-out.tin.it!news-in.tin.it!news3.tin.it.POSTED!not-for-mail
From: "Gianni" <stojkovicNONSPAMMARE@tiscali.it>
Newsgroups: free.it.visual-basic
References: <L7hac.122256$z23.5200369@news3.tin.it>
Subject: Re: stampa..
Lines: 25
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <07Yac.2880$hc5.71943@news3.tin.it>
Date: Thu, 01 Apr 2004 17:15:40 GMT
NNTP-Posting-Host: 80.117.224.143
X-Complaints-To: newsmaster@tin.it
X-Trace: news3.tin.it 1080839740 80.117.224.143 (Thu, 01 Apr 2004 19:15:40 MET DST)
NNTP-Posting-Date: Thu, 01 Apr 2004 19:15:40 MET DST
Organization: TIN