Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.

Stampanje na vise strana

[es] :: .NET :: .NET Desktop razvoj :: Stampanje na vise strana

[ Pregleda: 1225 | Odgovora: 1 ] > FB > Twit

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

Blue82
dipl. ecc.

Član broj: 165981
Poruke: 838
*.adsl-3.sezampro.rs.



+322 Profil

icon Stampanje na vise strana07.05.2011. u 15:57 - pre 157 meseci
Sta nije uredu sa ovim kodom? Zbog cega mi sve ispisuje na istoj strani umesto da ispise na 3 razlicite strane?

Code:

    Private Sub PrintDocument1_PrintPage(ByVal sender As System.Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles PrintDocument1.PrintPage
      
        Dim i As Integer 
        For i = 1 To 3
            e.Graphics.DrawString(Label1.Text, Label1.Font, Brushes.Black, 100, 200)

            If i < 3 Then
                e.HasMorePages = True
            Else
                e.HasMorePages = False
            End If
        Next i

    End Sub

 
Odgovor na temu

AMD guy
Miroslav
.NET developer

Član broj: 128930
Poruke: 1007

Sajt: www.its.edu.rs


+38 Profil

icon Re: Stampanje na vise strana08.05.2011. u 14:06 - pre 157 meseci
Citat:
As long as HasMorePages is set to true, the PrintDocument class will continue firing PrintPage events. However, it is up to you to track which page you are on, what data should be placed on each page, and what is the last page for which HasMorePage is not set to true.


http://en.csharp-online.net/Gr...ng_Recipes%E2%80%94Recipe_8_15
http://i.imgur.com/V3feW.jpg
http://on.wsj.com/H9yjz6 -- India Graduates Millions, but Too Few Are Fit to Hire
 
Odgovor na temu

[es] :: .NET :: .NET Desktop razvoj :: Stampanje na vise strana

[ Pregleda: 1225 | Odgovora: 1 ] > FB > Twit

Postavi temu Odgovori

Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.