Novo

Forum kao aplikacija na telefonu

Dodajte forum na početni ekran i koristite ga kao aplikaciju, sa menijem na dnu ekrana.

  • 1 odgovor
  • 1.532 pregleda

Najnovija ↓

Stampanje na vise strana 07.05.2011. u 16:57 · pre 188 meseci #1
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

Re: Stampanje na vise strana 08.05.2011. u 15:06 · pre 188 meseci #2
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
Potpis
http://i.imgur.com/V3feW.jpg
http://on.wsj.com/H9yjz6 -- India Graduates Millions, but Too Few Are Fit to Hire
Prijavite se da biste odgovorili u ovoj temi.PrijavaRegistracija

Premeštanje teme