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

a printing webservice? is this possible?

J
Hello all,

I am currently trying to create a printing webservice for internal use.
Basically, this webservice would accept the name of a file and try to print
that file to a particular printer. I was thinking of using WMI to access the
printers installed on the machine hosting the webservice.

It what I described possible? Can you access the printers on a machine
via WMI or as there security issues that would prevent this? If you schedule
jobs to be printed, what user do they run as? Can you run them as any user?
Does that user already have to be logged onto the machine? etc...

I just want to know if I'm on the right track...

J
Nov 23 '05 #1
2 4086
I believe you will have authorize the whole machine for delegation to use
WMI from IIS. I think building an API or printer COM would be easier and
could be run as any user who is connected thereby allowing normal printer
administration methods to be used.

WMI is not really designed to do what you want even though it should be
possible. WMI is more about managing the systems and it's components.

The VB6 and later COM objects for print job control should work under IIS as
long as they are called as COM objects from script.

Someone may already have some examples of this.

IIS and W2K3 already have the ability to publish printer through a web
site. Extending this with the SDK would probably be the easiest approach.
Using "integrated" security on the web site would allow the users to print
"as" themselves the same as printing on the LAN.
--
Jim Vierra

"J" <A@b.c> wrote in message news:eQ**************@TK2MSFTNGP12.phx.gbl...
Hello all,

I am currently trying to create a printing webservice for internal use.
Basically, this webservice would accept the name of a file and try to
print that file to a particular printer. I was thinking of using WMI to
access the printers installed on the machine hosting the webservice.

It what I described possible? Can you access the printers on a machine
via WMI or as there security issues that would prevent this? If you
schedule jobs to be printed, what user do they run as? Can you run them as
any user? Does that user already have to be logged onto the machine?
etc...

I just want to know if I'm on the right track...

J

Nov 23 '05 #2
I believe you will have authorize the whole machine for delegation to use
WMI from IIS. I think building an API or printer COM would be easier and
could be run as any user who is connected thereby allowing normal printer
administration methods to be used.

WMI is not really designed to do what you want even though it should be
possible. WMI is more about managing the systems and it's components.

The VB6 and later COM objects for print job control should work under IIS as
long as they are called as COM objects from script.

Someone may already have some examples of this.

IIS and W2K3 already have the ability to publish printer through a web
site. Extending this with the SDK would probably be the easiest approach.
Using "integrated" security on the web site would allow the users to print
"as" themselves the same as printing on the LAN.
--
Jim Vierra

"J" <A@b.c> wrote in message news:eQ**************@TK2MSFTNGP12.phx.gbl...
Hello all,

I am currently trying to create a printing webservice for internal use.
Basically, this webservice would accept the name of a file and try to
print that file to a particular printer. I was thinking of using WMI to
access the printers installed on the machine hosting the webservice.

It what I described possible? Can you access the printers on a machine
via WMI or as there security issues that would prevent this? If you
schedule jobs to be printed, what user do they run as? Can you run them as
any user? Does that user already have to be logged onto the machine?
etc...

I just want to know if I'm on the right track...

J

Nov 23 '05 #3

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

Similar topics

5
by: hellrazor | last post by:
Hi, (new to webservices here) Is it possible to access a class instance variable defined in a webservice? I want to access this variable, in addition to the data being returned by the . so...
2
by: Jurjen de Groot | last post by:
I'm about to start a new ASP.NET application, this application will generate several types of documents (PDF HTML XML-DOC) wich have to be printed at the client-side... (probably on different...
8
by: kenneth fleckenstein nielsen | last post by:
hi guru's I want to restart my webservice when ever it throws an exception that isn't cought. can i do that by web.config or iss or how ??
0
by: J | last post by:
Hello all, I am currently trying to create a printing webservice for internal use. Basically, this webservice would accept the name of a file and try to print that file to a particular printer....
2
by: hvj | last post by:
Does IIS create a separate instance of a webservice for each call to it or if more calls are done at the same time, is it possible that the same instance will be used for more calls? So do I...
2
by: ketanp | last post by:
I am working on one application where i want to print a file on network printer through asp.net webservice. When i invoke webservice from a application which is on the local machine where my...
1
by: Peter | last post by:
ASP.NET 3.5 I am trying to print from a Webservice on Windows 2003 box, but I am getting the following error when I try to print I have tried the following solution but it did not help...
18
by: Brett | last post by:
I have an ASP.NET page that displays work orders in a GridView. In that GridView is a checkbox column. When the user clicks a "Print" button, I create a report, using the .NET Framework printing...
0
by: Raymond | last post by:
Hi All, Has any one work with FedEx Webservice with ASP? I am using ASP via SOAP to talk to FedEx Webservice, I have no problem printing the FedEx label with PNG or PDF, my problem is to print...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
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...

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.