I have a report (labels) that print 1 record per page. How can I print 2 of
each in this order: Page 1, Page 1, Page 2 Page 2, Page 3 Page 3...? I'm
using--
DoCmd.OpenReport "Label", acPreview, , "[Load_ID]= " & "'" & Me![Load_ID] &
"'"
--for my "Print Labels" button.
Load_ID being the field that links form and subform, and Label is the report
name.
Thanks,
Chad 2 1463
You're kinda looking in the wrong place. How about something like
this:
Private Sub PrintReports(ByVal strReport As String, ByVal intCopies As
Integer, ByVal blnCollated As Boolean)
'arguments:
'strReport = name of report to open
'intCopies = number of copies to print
'blnCollated = collate yes/no
'--Open the report
DoCmd.OpenReport strReport, acViewPreview, , , acWindowNormal
'--Print out intCopies of said report
DoCmd.PrintOut acPrintAll, , , acHigh, intCopies, blnCollated
End Sub
So your call would be...
PrintReports "Label", 2, False
You answered another one. Thanks a lot. Worked great.
Chad
<pi********@hotmail.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com... You're kinda looking in the wrong place. How about something like this:
Private Sub PrintReports(ByVal strReport As String, ByVal intCopies As Integer, ByVal blnCollated As Boolean) 'arguments: 'strReport = name of report to open 'intCopies = number of copies to print 'blnCollated = collate yes/no
'--Open the report DoCmd.OpenReport strReport, acViewPreview, , , acWindowNormal
'--Print out intCopies of said report DoCmd.PrintOut acPrintAll, , , acHigh, intCopies, blnCollated
End Sub
So your call would be...
PrintReports "Label", 2, False This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: marcelf3 |
last post by:
Hello,
I am a novice/moderate html programmer and I wonder how to tell the
browser from which start point and to which end point in the text will
each page be printed.
In other words, I have a...
|
by: Nikolay Seksenov |
last post by:
I am developing VB.Net Web application to be used in our
department intranet. I created a web-based report using
Crystal Reports. I would like to print the report from the
web server instead of...
|
by: Jonathan Smith |
last post by:
Hi
In order to make it easier for my colleagues to write their school reports I
thought I might attempt to write a (simple) program.
At the moment I am working mentally through the steps I would...
|
by: marcelf3 |
last post by:
Hello,
I am a novice/moderate html programmer and I wonder how to tell the
browser from which start point and to which end point in the text will
each page be printed.
In other words, I have a...
|
by: Neo Geshel |
last post by:
I'm helping on a web site, and it's got our knickers in a knot. We're
using the same basic CSS files (with mods) and same headers as from our
other sites, but the "print preview" won't work...
| |
by: MLH |
last post by:
If I wanted 2 of each page, could I make them print out
2 of first page, 2 of second page, 2 of third page, 2 of
fourth page and 2 of 5th page? Or, do I have to run the
openreport method twice...
|
by: James J. Besemer |
last post by:
I would like to champion a proposed enhancement to Python. I describe the
basic idea below, in order to gage community interest. Right now, it's only
an idea, and I'm sure there's room for...
|
by: Mark |
last post by:
Hi,
I am creating application in VB 2005. and when I print report it adds extra
0.45 cm margin on left and top, and the reason for this is physical margins
of printer.
Is it possible to change...
|
by: deve8ore |
last post by:
Hello, I have a workbook with ~ 20 sheets, all which upload with different data every week. We have some "old school" managers that are still requesting hard copies of each sheet.... problem for me...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...
| |