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 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 ?
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 ?
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 ?
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 ?
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 ???
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 ???
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
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
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
JeroenI 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 ?
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
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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.
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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.
...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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.
...
|
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...
|
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...
| |