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

Automatic Windows printer creation?

Anyone know if there's a module which will allow me to 'create' windows
printer definitions? Not from a Windows domain network, but just to add a
printer that sends to a jet-direct-attached printer.

Thanks!
Dave

Jul 18 '05 #1
2 1879
You can probably do it through WMI. (class is Win32_Printer)
WMI works well with win32com, and there's also a wrapper module

http://tgolden.sc.sabren.com/python/wmi.html

for simplified access.
I imagine getting all the device parameters and port
configuration right will be messy, though.

Roger

"GMane Python" <s_**********@hotmail.com> wrote in message
news:ma**************************************@pyth on.org...
Anyone know if there's a module which will allow me to 'create' windows
printer definitions? Not from a Windows domain network, but just to add a
printer that sends to a jet-direct-attached printer.

Thanks!
Dave



----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= East/West-Coast Server Farms - Total Privacy via Encryption =---
Jul 18 '05 #2
On Wed, 19 Jan 2005 14:35:22 -0500, "GMane Python"
<s_**********@hotmail.com> wrote:
Anyone know if there's a module which will allow me to 'create' windows
printer definitions? Not from a Windows domain network, but just to add a
printer that sends to a jet-direct-attached printer.


The easiest way by far is to use the Windows Script Host objects
from winall. WSH makes creating windows resources like printers
etc fairly easy.

Alan g.
Author of the Learn to Program website
http://www.freenetpages.co.uk/hp/alan.gauld
Jul 18 '05 #3

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

Similar topics

3
by: Ido | last post by:
Hello, I am searching for an automatic forms creation tool that will help me to save time in developin forms (preferrably with validation). My forms get some data from a MySQL database and are...
0
by: Rob | last post by:
I'm having a problem with the printer for a program I've created. I have to recreate a data table on a page to be printed. Earlier today it worked fine; however, I am now having an odd problem:...
0
by: Colne | last post by:
Hello there, I have just upgraded from Office 2000 to Office XP on a network but when I go to make a report in design view I get the message: "there was a problem retrieving printer...
54
by: Sathyaish | last post by:
I am trying to print to the printer. I am using a VC++ 6.0 compiler on Win 2K, but I get an error saying that stdprn is not defined. Why is that? Is it because of Windows, I am guessing? Do I have...
58
by: Jorge Peixoto de Morais Neto | last post by:
I was reading the code of FFmpeg and it seems that they use malloc just too much. The problems and dangers of malloc are widely known. Malloc also has some overhead (although I don't know what is...
2
by: =?Utf-8?B?UmV5bm9sZHNVc2Vy?= | last post by:
Is there a way from within a C# app to create a printer? I am looking to automate the creation of (possibly) dozens of printers, to prevent having to go through the "Add Printer Wizard" so many...
3
by: printline | last post by:
Hello Guys I cannot print from a locally installed printer that is mapped to a windows 2003 sever. I have installed the printer locally and can print locally. I connect to the windows 2003...
2
by: wassimdaccache | last post by:
Dear all I am using windows server 2003 sp1. I am connecting a printer called BIRCH prp080 to my pc using the serial port. the printer is working well when I install the driver but the...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
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
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
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...
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
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...

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.