printing multiple pages

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jeroen van vliet

    #1

    printing multiple pages

    I have a program that when clicked i want to print 2000 papers, with the
    names adress etc of customers. So it have to print every record.

    How to manage it?

    Jeroen


  • J French

    #2
    Re: printing multiple pages

    On Thu, 18 Sep 2003 14:47:54 +0200, "Jeroen van vliet"
    <info@education alstays.com> wrote:
    [color=blue]
    >I have a program that when clicked i want to print 2000 papers, with the
    >names adress etc of customers. So it have to print every record.
    >
    >How to manage it?
    >[/color]

    Perhaps just a little more info ?

    Just a small hint as to the nature of your problem ?


    Comment

    • Jeroen van vliet

      #3
      Re: printing multiple pages


      Hi,

      well, i will give more info. I have a datagrid with an Adodc as a datasource
      and have this query:

      select * from customers

      now do i have 4 textboxes with the same Adodc and 4 fields, like names,
      adres postal code and city. Then i will print the contents of the 4
      textboxes, which I already positioned the X and Y. Now i can only print 1 at
      a time on an accept giro , then i made a button next, and print it again.
      Now i have 2000 customers. I dont want to click 2000 times to print all the
      accept giro´s.
      So I want to make a button to print the 2000 customers in one time.

      Please ask me if you need more information and thanks

      Jeroen[color=blue]
      >[color=green]
      > >I have a program that when clicked i want to print 2000 papers, with the
      > >names adress etc of customers. So it have to print every record.
      > >
      > >How to manage it?
      > >[/color]
      >
      > Perhaps just a little more info ?
      >
      > Just a small hint as to the nature of your problem ?
      >
      >[/color]


      Comment

      • J French

        #4
        Re: printing multiple pages

        Hmm

        That is a bit better

        Extract the data into Strings

        Use the Printer Object

        Printer.Height = ....

        Printer.Current X = ...
        Printer.Current Y = ...

        Printer.Print TheField

        etc

        Printer.NewPage

        Personally I would extract the relevant data and shove it into a file,
        then whip through printing each record in a separate program

        ... is this 'homework' or for real ?


        On Thu, 18 Sep 2003 17:30:17 +0200, "Jeroen van vliet"
        <info@education alstays.com> wrote:
        [color=blue]
        >
        >Hi,
        >
        >well, i will give more info. I have a datagrid with an Adodc as a datasource
        >and have this query:
        >
        >select * from customers
        >
        >now do i have 4 textboxes with the same Adodc and 4 fields, like names,
        >adres postal code and city. Then i will print the contents of the 4
        >textboxes, which I already positioned the X and Y. Now i can only print 1 at
        >a time on an accept giro , then i made a button next, and print it again.
        >Now i have 2000 customers. I dont want to click 2000 times to print all the
        >accept giro´s.
        >So I want to make a button to print the 2000 customers in one time.
        >
        >Please ask me if you need more information and thanks
        >
        >Jeroen[color=green]
        >>[color=darkred]
        >> >I have a program that when clicked i want to print 2000 papers, with the
        >> >names adress etc of customers. So it have to print every record.
        >> >
        >> >How to manage it?
        >> >[/color]
        >>
        >> Perhaps just a little more info ?
        >>
        >> Just a small hint as to the nature of your problem ?
        >>
        >>[/color]
        >
        >[/color]

        Comment

        • Jeroen van vliet

          #5
          Re: printing multiple pages

          what about the Thanks a lot for your info, but i am still a very much
          newbie.how do i set the data into strings? and the Printer.NewPage ? does
          this take care of all the records to be printed??[color=blue]
          > Hmm
          >
          > That is a bit better
          >
          > Extract the data into Strings
          >
          > Use the Printer Object
          >
          > Printer.Height = ....
          >
          > Printer.Current X = ...
          > Printer.Current Y = ...
          >
          > Printer.Print TheField
          >
          > etc
          >
          > Printer.NewPage
          >
          > Personally I would extract the relevant data and shove it into a file,
          > then whip through printing each record in a separate program
          >
          > ... is this 'homework' or for real ?
          >
          >
          > On Thu, 18 Sep 2003 17:30:17 +0200, "Jeroen van vliet"
          > <info@education alstays.com> wrote:
          >[color=green]
          > >
          > >Hi,
          > >
          > >well, i will give more info. I have a datagrid with an Adodc as a[/color][/color]
          datasource[color=blue][color=green]
          > >and have this query:
          > >
          > >select * from customers
          > >
          > >now do i have 4 textboxes with the same Adodc and 4 fields, like names,
          > >adres postal code and city. Then i will print the contents of the 4
          > >textboxes, which I already positioned the X and Y. Now i can only print 1[/color][/color]
          at[color=blue][color=green]
          > >a time on an accept giro , then i made a button next, and print it again.
          > >Now i have 2000 customers. I dont want to click 2000 times to print all[/color][/color]
          the[color=blue][color=green]
          > >accept giro´s.
          > >So I want to make a button to print the 2000 customers in one time.
          > >
          > >Please ask me if you need more information and thanks
          > >
          > >Jeroen[color=darkred]
          > >>
          > >> >I have a program that when clicked i want to print 2000 papers, with[/color][/color][/color]
          the[color=blue][color=green][color=darkred]
          > >> >names adress etc of customers. So it have to print every record.
          > >> >
          > >> >How to manage it?
          > >> >
          > >>
          > >> Perhaps just a little more info ?
          > >>
          > >> Just a small hint as to the nature of your problem ?
          > >>
          > >>[/color]
          > >
          > >[/color]
          >[/color]


          Comment

          • J French

            #6
            Re: printing multiple pages

            On Thu, 18 Sep 2003 18:00:11 +0200, "Jeroen van vliet"
            <info@education alstays.com> wrote:
            [color=blue]
            >what about the Thanks a lot for your info, but i am still a very much
            >newbie.how do i set the data into strings? and the Printer.NewPage ? does
            >this take care of all the records to be printed??[/color]

            Forget about you existing project

            Just play with the Printer Object for about an hour

            .... You are using VB - not Access ???


            Comment

            • Jeroen van vliet

              #7
              Re: printing multiple pages

              im using access, and i plyed with the printer object for many hours, and i
              managed to get the right positions, but i just need to know how to print
              everything in one button[color=blue]
              >[color=green]
              > >what about the Thanks a lot for your info, but i am still a very much
              > >newbie.how do i set the data into strings? and the Printer.NewPage ? does
              > >this take care of all the records to be printed??[/color]
              >
              > Forget about you existing project
              >
              > Just play with the Printer Object for about an hour
              >
              > ... You are using VB - not Access ???
              >
              >[/color]


              Comment

              • J French

                #8
                Re: printing multiple pages

                On Thu, 18 Sep 2003 18:32:10 +0200, "Jeroen van vliet"
                <info@education alstays.com> wrote:
                [color=blue]
                >im using access, and i plyed with the printer object for many hours, and i
                >managed to get the right positions, but i just need to know how to print
                >everything in one button[/color]

                You are in the wrong NG

                This is VB

                Access does contain VBA which is pretty similar to VB

                However you would be MUCH better off in an Access NG

                HTH

                Comment

                • Jeroen van vliet

                  #9
                  Re: printing multiple pages

                  nO, I MEAN I AM USING AN aCCESS DATABASE FOR MY DATAGRID SOURCE[color=blue]
                  >[color=green]
                  > >im using access, and i plyed with the printer object for many hours, and[/color][/color]
                  i[color=blue][color=green]
                  > >managed to get the right positions, but i just need to know how to print
                  > >everything in one button[/color]
                  >
                  > You are in the wrong NG
                  >
                  > This is VB
                  >
                  > Access does contain VBA which is pretty similar to VB
                  >
                  > However you would be MUCH better off in an Access NG
                  >
                  > HTH[/color]


                  Comment

                  • Steve Gerrard

                    #10
                    Re: printing multiple pages

                    Here is an example, using an Adodc connected to the Authors table in Biblio.mdb.
                    My PrintRecord routine just does a Debug.Print, but you said you already have
                    the code to print a single record. Hopefully this will point you in the right
                    direction. PS: What is an "accept giro"?

                    Steve

                    ----

                    Private Sub Command1_Click( )

                    'use the recordset associated with the Adodc
                    With Adodc1.Recordse t
                    'scoot to the first record, unless there are none
                    If Not .BOF Then
                    .MoveFirst
                    End If
                    'now loop through until we hit the End of File
                    While Not .EOF
                    'print current record
                    Call PrintRecord
                    'move to next record
                    .MoveNext
                    Wend
                    End With

                    End Sub

                    Private Sub PrintRecord()
                    'print the current record in Adodc
                    Debug.Print Adodc1.Recordse t("Author")
                    End Sub

                    End Sub

                    "Jeroen van vliet" <info@education alstays.com> wrote in message
                    news:bkcjdr$ek7 $1@reader08.wxs .nl...[color=blue]
                    >
                    > Hi,
                    >
                    > well, i will give more info. I have a datagrid with an Adodc as a datasource
                    > and have this query:
                    >
                    > select * from customers
                    >
                    > now do i have 4 textboxes with the same Adodc and 4 fields, like names,
                    > adres postal code and city. Then i will print the contents of the 4
                    > textboxes, which I already positioned the X and Y. Now i can only print 1 at
                    > a time on an accept giro , then i made a button next, and print it again.
                    > Now i have 2000 customers. I dont want to click 2000 times to print all the
                    > accept giro´s.
                    > So I want to make a button to print the 2000 customers in one time.
                    >
                    > Please ask me if you need more information and thanks
                    >
                    > Jeroen[color=green]
                    > >[color=darkred]
                    > > >I have a program that when clicked i want to print 2000 papers, with the
                    > > >names adress etc of customers. So it have to print every record.
                    > > >
                    > > >How to manage it?
                    > > >[/color]
                    > >
                    > > Perhaps just a little more info ?
                    > >
                    > > Just a small hint as to the nature of your problem ?
                    > >
                    > >[/color]
                    >
                    >[/color]


                    Comment

                    • magician

                      #11
                      Re: printing multiple pages

                      put the code that you have in the print command button into a loop.
                      an example would be:

                      for count = 1 to TotalNumberToPr int

                      CodeToPrintDocu ment(Count)

                      Next

                      or...

                      Do while CustomerNumber< TotalCustomers

                      PrintCustomerIn fo(CustomerNumb er)
                      CustomerNumber = CustomerNumber +1

                      Loop

                      although this is pseudo code it might give you an idea.

                      regards
                      Magician



                      "Jeroen van vliet" <info@education alstays.com> wrote in message
                      news:bkc9og$hfb $1@reader10.wxs .nl...[color=blue]
                      > I have a program that when clicked i want to print 2000 papers, with the
                      > names adress etc of customers. So it have to print every record.
                      >
                      > How to manage it?
                      >
                      > Jeroen
                      >
                      >[/color]


                      Comment

                      Working...