473,404 Members | 2,137 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,404 software developers and data experts.

Each user prints the same report to a different printer

My database is a FE/BE Access 2000 database installed on 3 XP workstations.

Each user has a different model of label printing machine attached to their
PCs:

Workstation 1 has a Label printer model 200
Workstation 2 has a Label printer model 320
Workstation 3 has a Label printer model 400

All the above models all print to the same size label (with a bit of
tweaking).

There is a button on one of the forms called "Print Address Label" that runs
the following code:

DoCmd.OpenReport "rptLabel", acViewNormal

Everytime the client requests a minor update on the database, I have to
manually copy the new front end to each PC and reconfigure the "rptLabel"
report on each PC to print to the specific model of label printer attached
to the PC otherwise the user gets this message:

"This document was previously formatted for the printer DYMO Labelwriter 400
on USB003, but the printer isn't available.....etc.."

It's a pain. I want to be able to roll out a single updated FE file and the
users do not want have to select a printer every time they print a label.

The client does not want to share a single printer because each user wants a
printer on their own desk. So I have suggested that they buy two more model
400 printers to replace the older models, so that every one is using the
same model.

Would this alone solve the roll out problem? Or will I have to start messing
with printer APIs and other nasties? (Notice that the message above
mentioned that it was expecting to find the Labelwriter 400 on USB003).

Thanks

Paul
Nov 9 '06 #1
4 4206

if you dont want to mess with api stuff here's a quick and dirty work
around (but you're stuffed if your users switch machines). Have three
versions, each formatted in the required way. then print selectively
based on user name:

Select Case Environ("USERNAME")
Case "UserNameA"
'launch report a
case "UserNameB"
'launch report b
case "UserNameC"
'Launch report c
End Select

If you would prefere users to be able to swap around then you will need
to identify the computer. Search for getting the computers Mac address
from API with VBA to do this.

The best solution though, would be to identify the physical label
printer connected. I'm sure there's an API for it, but I can't help you
with that one.

Nov 9 '06 #2
On Thu, 9 Nov 2006 11:56:36 -0000, "Paul H" <pa**@nospam.comwrote:

On Access2000 this would require a messy switching of the default
printer. On Access2002 and above MSFT finally fixed that with the
addition of the Printer object which makes the task easy.

-Tom.

>My database is a FE/BE Access 2000 database installed on 3 XP workstations.

Each user has a different model of label printing machine attached to their
PCs:

Workstation 1 has a Label printer model 200
Workstation 2 has a Label printer model 320
Workstation 3 has a Label printer model 400

All the above models all print to the same size label (with a bit of
tweaking).

There is a button on one of the forms called "Print Address Label" that runs
the following code:

DoCmd.OpenReport "rptLabel", acViewNormal

Everytime the client requests a minor update on the database, I have to
manually copy the new front end to each PC and reconfigure the "rptLabel"
report on each PC to print to the specific model of label printer attached
to the PC otherwise the user gets this message:

"This document was previously formatted for the printer DYMO Labelwriter 400
on USB003, but the printer isn't available.....etc.."

It's a pain. I want to be able to roll out a single updated FE file and the
users do not want have to select a printer every time they print a label.

The client does not want to share a single printer because each user wants a
printer on their own desk. So I have suggested that they buy two more model
400 printers to replace the older models, so that every one is using the
same model.

Would this alone solve the roll out problem? Or will I have to start messing
with printer APIs and other nasties? (Notice that the message above
mentioned that it was expecting to find the Labelwriter 400 on USB003).

Thanks

Paul
Nov 9 '06 #3
Thanks folks,

Very helpful suggestions, I will probably upgrade Access and use the Printer
object.

Paul

Nov 10 '06 #4
You can also simpy set the lablel repot to use the default proitner, and DO
NOT assing the reprot to a particlar label printer.

You can then use my printer swtich code here:

http://www.members.shaw.ca/AlbertKal.../msaccess.html

So, you simply "save" which printer you want in some table, and then
'swtich' to that printer...print, and then swtich back....
--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pl*****************@msn.com
Nov 10 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: george d lake | last post by:
Hi, Is it possible to write in VB6 an activeX that will receive a RecordSet and display a data report and then print it on a local/network printer?
15
by: Mark C | last post by:
All, I have exhaustingly been looking through the newsgroups in search of a way to systemically output an Access 97 report to a pdf file using the full version of Adobe Acrobat. I want the user...
6
by: Mike Conklin | last post by:
This one really has me going. Probably something silly. I'm using dcount for a report to determine the number of different types of tests proctored in a semester. My report is based on a...
7
by: msrado | last post by:
Hi All, I have a report in Microsoft Access 2000 that appears with standard blank font in a print preview and shaded grey font in a printout. I don't want it to be shaded and can't figure out...
6
by: david epsom dot com dot au | last post by:
I have a report with an OLE bound frame. A bitmap has been pasted into the bound field. The bitmap displays and prints differently on different computers. In particular, the alignment is...
9
by: MLH | last post by:
I have a source query (qryITSLetterList) feeding rows containing name, addr, city, state, zip and VehicleID to a report (rptITSnotices). The query may contain 1-to-5 records resulting in 1-to-5...
2
by: Delores | last post by:
Has anyone encountered a situation where your Access report will be printing just fine and then one day you run the report as usual and instead you get a small image of the report scaled down to...
7
by: TC | last post by:
I've produced an Access application for a client. For one report, text gets cut-off at the right margin when we print the report. It does this only when we print; it doesn't happen when we view the...
2
by: sphinney | last post by:
OK, is Access 2007 driving anyone else nuts? I've got three lines of VBA code that sends a report to the printer: DoCmd.OpenReport RPT_NAME, acViewPreview, , , , ARGS DoCmd.RunCommand...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
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,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.