Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Print Next record

OaklandstyleOaklandstyle Member Posts: 4
Ok I have a form that allows me to print one record on a page. I would like to have it where it prints 1 row on a page, and prints utill the last row in the sql database.

can somebody point me in the right direction.

Comments

  • OaklandstyleOaklandstyle Member Posts: 4
    Ok so i figured it out (in case anybody needed to know)

    Dim currentpos As String
    Dim currentof As String

    currentof = "of "
    currentpos = 0



    currentpos = currentof + BindingNavigatorPositionItem.Text

    Do While currentpos < BindingNavigatorCountItem.Text
    currentpos = currentof + BindingNavigatorPositionItem.Text

    Me.PrintForm1.Print(Me, PowerPacks.Printing.PrintForm.PrintOption.ClientAreaOnly)


    BindingSource.MoveNext()
    Loop


    It might not be the correct way to do it but it works and i think that should be all that matters (there was alot of other code in there so i might have deleted some when i was cleaning it up)
Sign In or Register to comment.