473,325 Members | 2,792 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 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 5863
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 techniques (i.e. e.Graphics.DrawString in a...
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 Reports or Reporting Services or VStudio. Any...
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 PrintDoc.PrintPage, AddressOf Me.PrintText Do While...
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 e.hasmorepages) is not there. But I am having...
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 report that is generated by my application that if...
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 instantiated multiple times at once by a windows service....
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 create a report, using the .NET Framework printing...
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 deposit's report. I created a class to store the...
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. The following code does not work when we have a...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.