469,306 Members | 1,587 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,306 developers. It's quick & easy.

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
Jul 17 '05 #1
10 5635
On Thu, 18 Sep 2003 14:47:54 +0200, "Jeroen van vliet"
<in**@educationalstays.com> wrote:
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?


Perhaps just a little more info ?

Just a small hint as to the nature of your problem ?
Jul 17 '05 #2

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
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?


Perhaps just a little more info ?

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

Jul 17 '05 #3
Hmm

That is a bit better

Extract the data into Strings

Use the Printer Object

Printer.Height = ....

Printer.CurrentX = ...
Printer.CurrentY = ...

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"
<in**@educationalstays.com> wrote:

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
>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?
>


Perhaps just a little more info ?

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



Jul 17 '05 #4
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??
Hmm

That is a bit better

Extract the data into Strings

Use the Printer Object

Printer.Height = ....

Printer.CurrentX = ...
Printer.CurrentY = ...

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"
<in**@educationalstays.com> wrote:

Hi,

well, i will give more info. I have a datagrid with an Adodc as a datasourceand 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 ata 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 theaccept 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

>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?
>

Perhaps just a little more info ?

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


Jul 17 '05 #5
On Thu, 18 Sep 2003 18:00:11 +0200, "Jeroen van vliet"
<in**@educationalstays.com> wrote:
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??


Forget about you existing project

Just play with the Printer Object for about an hour

.... You are using VB - not Access ???
Jul 17 '05 #6
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
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??


Forget about you existing project

Just play with the Printer Object for about an hour

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

Jul 17 '05 #7
On Thu, 18 Sep 2003 18:32:10 +0200, "Jeroen van vliet"
<in**@educationalstays.com> wrote:
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


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
Jul 17 '05 #8
nO, I MEAN I AM USING AN aCCESS DATABASE FOR MY DATAGRID SOURCE
im using access, and i plyed with the printer object for many hours, and imanaged to get the right positions, but i just need to know how to print
everything in one button


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

Jul 17 '05 #9
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.Recordset
'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.Recordset("Author")
End Sub

End Sub

"Jeroen van vliet" <in**@educationalstays.com> wrote in message
news:bk**********@reader08.wxs.nl...

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
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?


Perhaps just a little more info ?

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


Jul 17 '05 #10
put the code that you have in the print command button into a loop.
an example would be:

for count = 1 to TotalNumberToPrint

CodeToPrintDocument(Count)

Next

or...

Do while CustomerNumber<TotalCustomers

PrintCustomerInfo(CustomerNumber)
CustomerNumber = CustomerNumber +1

Loop

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

regards
Magician

"Jeroen van vliet" <in**@educationalstays.com> wrote in message
news:bk**********@reader10.wxs.nl...
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

Jul 17 '05 #11

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by John Sutor | last post: by
10 posts views Thread by Jeff B. | last post: by
4 posts views Thread by Jay | last post: by
6 posts views Thread by Bill | last post: by
reply views Thread by ben.agnoli | last post: by
18 posts views Thread by Brett | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Geralt96 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.