Results 1 to 4 of 4

Thread: printing problem...

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jun 2007
    Posts
    21

    Arrow printing problem...

    hello folks, I want to print 5 pages with ("hello" + page) string in each one and I have a problem with this code:
    Code:
    Private Sub Command1_Click()
        Dim i As Long
        For i = 1 To 5
            Printer.NewPage
            Printer.Print "hello " + Str(i)
        Next i
        Printer.EndDoc
    End Sub
    why it prints a previous white page?
    how would be the code to avoid this previous white page?, thansk a lot,
    Angel.

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: printing problem...

    Just a little rearranging
    Code:
    Private Sub Command1_Click()
    Dim i As Long
        For i = 1 To 5
            Printer.Print "hello " + Str(i)
            Printer.NewPage
        Next i
        Printer.EndDoc
    End Sub

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Jun 2007
    Posts
    21

    Re: printing problem...

    hi Hack, thanks for your help

  4. #4
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: printing problem...

    My pleasure.

    If you consider this resolved, you could help us out by pulling down the Thread Tools menu and clicking the Mark Thread Resolved menu item. That will let everyone know that you have your answer.

    Thank you.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width