473,414 Members | 1,698 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,414 software developers and data experts.

Other people's reports printing on my printer

I have a network printer set up right near my office. Throughout the day, reports from a database I created keep popping out from a bunch of different services. It appears that the default printer for the report is this nearby printer (which is what I have set as the default printer on my own computer). I did some testing on nearby computers under other people's accounts, and what is apparently happening is this -

When you load up the database, the default printer is whatever your default printer normally would be. As soon as you hit the button to open the report, though, the default printer is set to this local network printer. Here is my code for opening the report -

Expand|Select|Wrap|Line Numbers
  1. Private Sub cmd_EquipmentReport_Click()
  2. On Error GoTo Err_cmd_EquipmentReport_Click
  3.  
  4.     Dim stDocName As String
  5.  
  6.     stDocName = "rpt_Equipment"
  7.     DoCmd.OpenReport stDocName, acPreview
  8.  
  9. Exit_cmd_EquipmentReport_Click:
  10.     Exit Sub
  11.  
  12. Err_cmd_EquipmentReport_Click:
  13.     MsgBox Err.DESCRIPTION
  14.     Resume Exit_cmd_EquipmentReport_Click
  15.  
  16. End Sub
I don't see anything there that would change the default printer on a different computer, under a different user account, to my own personal default printer. I also can't find anything in the report properties that would be causing it to do this. Any ideas on what could be causing this?
Oct 3 '07 #1
1 1469
nico5038
3,080 Expert 2GB
You can set the printer for a report by opening the report in design mode and select the wanted paper setting and printer using File/Pagesettings and File/Print. Saving the report will use these settings the next time you print it.
However, when you "move" the .mdb to another PC these settings will be reset, unless you have placed the .mdb on a server.

When using Access 2003 you can manage this easy from code by using some sample code from the Access Cookbook (http://www.oreilly.com/catalog/accesscook2/ see CDROM and the index)

The older versions are very hard to change....

Nic;o)
Oct 6 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Karl E. Taylor | last post by:
Could someone point me in the direction of a good example of coding report printing from database tables through VB? I have 5 tables that I need to run a report from. They are actually very...
1
by: Simonne De Ryck | last post by:
Hi, I'm looking for a program fo printing reports from VB. Now someone has told me about crystal reports and when I went looking on there site I noticed that there are 4 possibilities: -...
0
by: Ioannis Demetriades | last post by:
Hi, I have a crystal report that prints OK when I send the report directly to the printer. If i display the report on the screen and then click on the print icon I get the first couple of...
3
by: marwa mohamed | last post by:
salamo alikom hi all when i run report that includes image control linked to a field in the table that contains the image path(on the server)and the record source of the report contains over 30...
4
by: Jamey Shuemaker | last post by:
I've been looking for a way to do a duplex print job without a duplex printer. I reviewed some old posts about printing odd pages and found that most of them led to KB article 101075 or an export...
11
by: IC_Clearly | last post by:
I'm running Server 2003 and wonder how well WTS works when printing an Access report to a client. Any suggestions would be appreciated. Thanks. IC
0
by: ALMA_J_III | last post by:
Hi all! Customer will use HP LaserJet 4200TN printer for printing of invoices. 3 different versions of invoice on different color of paper should be to print. HP LaserJet 4200TN have 3 paper...
0
by: Anne-Marie Buki via .NET 247 | last post by:
Hi, I'm having problemes printing with Crystal Reports using VB.NET.Whenever I try printing on the local printer, when I don'tspecify a PrinterName, everything works fine. However, when Ichange the...
6
by: Lloyd Dupont | last post by:
Before printing I create an instance of PrintDocument as Follow (beware, pseudo code) //============================== PrinterResolution pr = new PrinterResolution(); pr.X= 600; pr.Y= 600;...
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: 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
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...
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
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...
0
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...
0
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 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.