472,338 Members | 1,687 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,338 software developers and data experts.

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 5756
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: John Sutor | last post by:
Does anyone know how to print multiple page documents? I can print from a test box or a one page document, but not one with multiple pages.
10
by: Jeff B. | last post by:
Has anyone come across a decent algorithm for implementing word wrap features in .net printing? I have a small component that uses basic printing...
4
by: Jay | last post by:
Still can't seem to find a solution to printing a lengthy datagrid on multiple pages including datagrid headeron each page. I am not using Crystal...
2
by: ray well | last post by:
hi, i need to print multiple pages on a printer. this is what i'm using now Sub Print() Dim PrintDoc As New PrintDocument AddHandler...
6
by: Bill | last post by:
Hi I am trying to get my listbox items to print if they stream past the one page mark. my code is working for one page of information (if the...
6
by: Siv | last post by:
Hi, I am getting into printing with VB.NET 2005 and want to implement the usual capability that a user can select a selection of pages. I have a...
0
by: ben.agnoli | last post by:
I have written the below class for printing out large jpg files (1 page wide, multiple pages high) over multiple pages. The class will get...
18
by: Brett | last post by:
I have an ASP.NET page that displays work orders in a GridView. In that GridView is a checkbox column. When the user clicks a "Print" button, I...
0
it0ny
by: it0ny | last post by:
Hi guys, thanks I am fairly new to this forum so I hope I chose the right place to post this question. I try to make my program printout a...
1
by: charitha0 | last post by:
Hi, Can any one help in printing a html table content (dynamically generated which spreads accorss multiple pages ) in landscape by default. ...
0
by: concettolabs | last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
0
by: CD Tom | last post by:
This happens in runtime 2013 and 2016. When a report is run and then closed a toolbar shows up and the only way to get it to go away is to right...
0
by: CD Tom | last post by:
This only shows up in access runtime. When a user select a report from my report menu when they close the report they get a menu I've called Add-ins...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.