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

COM+ component printers collection is empty

Hi,

I have a VB6 ActiveX DLL that we use for printing. It iterates through
the printers collection to set the printer to the one the user
requested. This is called from ASP (VB Script) pages, and from a VB
Web Class application. The problem is, sometimes the printers
collection is empty, so it fails to print.

The COM+ package is configured to run as a known user. This user has
printers configured. If we logon to the Web Server as the known user,
and restart component services, then the printers appear and it all
works. if we leave the console logged on, it keeps working. If we log
the console off, then at some point (overnight), it 'forgets' the
printers.

We now have a customer where leaving the console logged on is not an
option. And they do not want to logon to 'kick start' it. The first
users come in early in the morning, before IT is at work to resolve
teh porblem.

This is occuring on Windows 2000 Server, and on Windows 2003 server.

I have tried:

- Searching the web.
- Using EnumPrinters instead. This gives the local pronters, but not
the network pronters.
- (I am trying) using OpenPrinter first.
- I have tried to find a way to force the DLL to initialise the
security, without success.

TIA.

Simon.
Jul 19 '05 #1
0 1565

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

Similar topics

0
by: d | last post by:
Hey all, I've been having a weird problem using com objects in IIS 4. I've built a middleware system that can be called with XML requests over HTTP. The request is sent to an ASP page which...
2
by: Marcin Grzębski | last post by:
Hi All, How to create *component* class which do now show its instance in a component bar? I want to create other class, this *component* instance collection and i know how to show that...
3
by: Niloday | last post by:
Hi All, I have COM dll developed in VB.6 that exposes a method to print a word document. The method accepts the name of the printer and the fully qualified name of the document to be printed. In...
1
by: Javier Ros | last post by:
Hi guys!, I´m tring to install my own component in the Visual Studio .Net ToolBox, I have tried with this code: // Create a EnvDTE object. System.Type t =...
3
by: Mauro | last post by:
Hi, I have created a component similar to ImageList but my component stored Icons (System.Drawing.Icon). For being precise, the stored data is an object created from me that to its inside it has...
1
by: Mad Scientist Jr | last post by:
I have a vb.net app that is running over citrix, and am trying to grab a list of printers on the user's systems, however I am getting empty names: 'For Each sPrinterName In...
2
by: BSamp | last post by:
I have the following business entity classes shown below. I have a data layer that retrieves the data from the database and populates a new instance of the PendingRecord class then adds it to the...
2
by: Tessa | last post by:
Hi, We have a .net web application, and are trying to use PrinterSettings.InstalledPrinters to list the printers installed on the webserver. (Windows 2003 server R2, IIS 6, .net framework 2.0.)...
2
by: senfo | last post by:
I'm using a ListView control to display pictures similarly to how Windows Explorer displays pictures in "Thumbnails" view. The images are stored in an ImageList component. I would like to provide...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
tracyyun
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...
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...

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.