473,769 Members | 2,124 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Printer selection in Access 97

I'm having a problem with an application I pushed out recently.

First, some background

The application was made with Access 97 (unfortunately I'm stuck with
this older version for the moment)
The app is compiled into an MDE on a network drive from which several
users access it in one location
I'm an entry-level programmer, so please frame your answers for less
experienced =)

The problem:
Users need to be able to select the printer they want their output to
go through as well as set some other print options for their print
jobs. Using the default printer is not sufficient for this as the
reports they print off from my application contain sensitive
information that needs to be handled differently from the normal print
jobs they do.

It's easy enough to allow for a user to select their printer by
adding the 'page format' button to the report toolbar. The problem
with this is that when one user changes the printer, it saves the last
printer they used when they exit the application. Any user who logs in
later will be printing to the last printer the other user selected by
default. In addition, users get nasty error messages when two users are
trying to change printer options on the same report at the same time.

I know of only 2 ways to fix this for sure, and neither of these is
very good.

I could split the app keeping the tables on the network drive, and
distribute the front end of the application to each user. Each user
would then have their own print options saved to their individual
copies of the app. The problem here is that the only method I have to
distribute updates (and there will be many updates) is through e-mail.
Users would constantly be hassling with making sure their client side
version was the up to date version.

I could require the user to change their default printer settings
before they log into the application. This is a pain for obvious
reasons.

I was also thinking that it might be possible to reset the app to print
to 'client default' after every print job rather than saving the
specific printer the last user printed to. The problem here is that I
have no idea how to do that programmaticall y. I've read some things
about prtdevnames and prtdevmode. However, the articles I've read
about this seem to be geared more towards preserving a legal size
document print size rather than selecting specific printers.

I'm wondering if any of you know how to do this, OR if any of you
have a better way to deal with this situation.

Thanks in advance any responses!

Nov 13 '05 #1
1 4450
Albert Kallal wrote some A97 code for dealing with printer selection.
Perhaps he has what you need here:

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

James A. Fortune

Nov 13 '05 #2

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

Similar topics

5
2028
by: Tom Berry | last post by:
We currently are trying our first transformation from VB6 to VB.Net. Of course, the Printer object is gone, but I'm having trouble finding the replacement syntax necessary to perform similar actions or set variables. We are interested in doing this inline (no pop-up dialog box). Specifically, where how would I replace the following properties/methods of the old Printer objects. Printer.NewPage Printer.TextHeight Printer.TextWidth
2
4152
by: John | last post by:
Hi Is there a way to default two reports report 1 & report 2 so they go to printer tray 1 and tray 2 respectively when printed? Thanks Regards
2
2908
by: Jeff | last post by:
Does anyone know how to print a report to a specific printer, and even using a specific tray. Using VB or even a macro. Jeff
3
15040
by: giloosh99 | last post by:
Hello I have a report that needs to printed by a specific printer rather than the computers default printer? Is there a way to dynamically choose a specific printer to print a report through VBA code? I know that in the report's page setup you could choose a specific printer to print from in the page setup but that is not enough for my needs. I need to be able to dynamically choose a printer through code. Is there a way? Any help will...
1
2037
by: TD | last post by:
I created a new toolbar for my reports and need a button on it that opens (I'm not sure what the offical name of this window is) the Windows printer window where you can select which printer to print to and change the printer preferences, etc. I am using Access 2003. Is there a way to do this? Thanks, TD
0
1616
by: Karthick_Microsoft | last post by:
Actually, in my ASP.Net application, i have a requirement of automatically changing the default printer. I did a OCX using VB and put it on the web page. The client machines do not have local printers but network printers (they have been mapped using Local Port pointing to \\machine\printer - this was suggested in a topic - for a reason that a network printer can be given a friendly name) - But when I click on Print from the browser...
2
5715
by: Wayne | last post by:
I'm using the following line of code to print only the first page of a report: DoCmd.PrintOut acPages, 1, 1 This works fine with one limitation. It sends the report to the default printer. Is there some way to show the printer selection window before sending the report to the printer? Any help is appreciated.
0
1391
by: Mark | last post by:
Hello, I have a VB6 Project that uses an ini file to save selected printer settings for several forms. The program allows users to select the printer on their work station for printing forms. If a printer is not selected for a particular form, the user is prompted to select a printer. The program saves the printer selections to an ini file. THE PROBLEM: This program works well most of the time. On occasion, a specific printer...
3
3481
by: John | last post by:
Hi I have a report for which I have set the Epson LQ-1050 (dot matrix) as the default printer. The problem is that I still can't see the printer's native (hardware) fonts in the font selection drop down in report designer? Thanks Regards
0
9583
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9423
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10039
jinu1996
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8869
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7406
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5297
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3955
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 we have to send another system
2
3560
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2814
bsmnconsultancy
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.