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

Change username of printjob in spool

I want to change the Username/owner of a printjob in the spoolfile.

I know I have to use the SetJob function in the winspool.drv and that I have
to declare this by adding the following to my class:

Declare Function SetJob Lib "winspool.drv" (ByVal hPrinter As IntPtr, ByVal
JobId As Integer, ByVal Level As Integer, ByRef pJob As Byte, ByVal
Command_Renamed As Integer)

But how do I use this to change the owner/username of a print job?

With kind regards,

Philip Wagenaar
Nov 21 '05 #1
0 1355

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

Similar topics

0
by: Thomas R. Hummel | last post by:
Hello, I have a table which has a few million records. It has an IDENTITY column that serves as the primary key. In a part of our application here, a previous record may need to be copied as a...
1
by: Philip Wagenaar | last post by:
How can I move a printjob from one printqueue to another. The printqueue's both have the same printerdriver.
8
by: Philip Wagenaar | last post by:
I need to send printjobs to a printqueue under diffrent usernames. The printsoftware on the queue is not very 'secure' so I can create a user on 1 system and send a printjob under it's name to the...
0
by: Robert | last post by:
Greetings, In Google I am finding what the deffinition of a table spool operator is but not what it is doing to performance. The execution plan shows the output of a clustered Index scan (54...
3
by: Asle | last post by:
Hi All, I am using MS Access 2007. I have a database for Quoting system for a Printing Company , where the user generate Quotes and all confirmed Quotes turn into a job. Akin to that, i have...
1
by: orajit | last post by:
I Have created following PL/sql blok DECLARE vl_n_cnt NUMBER:=0; vl_max_date varchar2(100); CURSOR c1 IS SELECT CREATED_DTM,EVENT_DTM,ACCOUNT_NUM,EVENT_COST_MNY,EVENT_TYPE_ID ...
1
by: akaley | last post by:
HI.. iam using Spool ..for loading the data into file from select statement.. iam facing some problems...Please give me u r valuable suggestion.. This is the sample code used by me.. set...
2
by: apollock | last post by:
Our application is having an issue where a query in a stored procedure periodically gets a bad plan with a Lazy Spool Operator that changes the query execution time from 5ms to 900ms and kills our...
5
by: daves1 | last post by:
Hi, I am running an sql script in oracle to spool a csv file. I am using the following set up: Define name='JOE' spool names.txt set linesize 200 set pagesize 50000 set heading off set...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.