Click here to Skip to main content
15,888,102 members
Home / Discussions / C#
   

C#

 
QuestionHow to print whole scrolled form Pin
Miak1008-Sep-08 0:11
Miak1008-Sep-08 0:11 
AnswerRe: How to print whole scrolled form Pin
softwarejaeger8-Sep-08 0:20
softwarejaeger8-Sep-08 0:20 
Questionbmp to jpeg converter Pin
laziale7-Sep-08 23:52
laziale7-Sep-08 23:52 
AnswerRe: bmp to jpeg converter Pin
Anthony Mushrow8-Sep-08 0:10
professionalAnthony Mushrow8-Sep-08 0:10 
AnswerRe: bmp to jpeg converter Pin
stancrm8-Sep-08 0:48
stancrm8-Sep-08 0:48 
QuestionWeb Services in asp.net Pin
g_amol7-Sep-08 23:10
g_amol7-Sep-08 23:10 
AnswerRe: Web Services in asp.net Pin
AhsanS7-Sep-08 23:18
AhsanS7-Sep-08 23:18 
QuestionAdd printer [modified] Pin
arkiboys7-Sep-08 23:05
arkiboys7-Sep-08 23:05 
Hi,
I have a reference to Interop.PRNADMINLib
I would like to run the code on the print server i.e (myServer) and pickup the installed printers i.e. (printer1) and install this printer on machineB on the network. So machineB will have this in it's printer's list i.e. \\myServer\printer1

Question:
The following code installs the printer on the remote machine but I would like it to point to the print server and not directly connect to the printer itself.
For example, after running the below code you will see the printer1 in the printers list on machineB but I would like it to show \\myServer\printer1
instead of just printer1
How can this code be modified to achieve my goal please?

The code I am using:
PRNADMINLib.Printer p = new PRNADMINLib.Printer();
PRNADMINLib.PrintMaster pm = new PRNADMINLib.PrintMaster();

p.ServerName = "\\\\machineB";
p.PrinterName = "printer1";

pm.PrinterAdd(p);

Any thoughts please?
Thanks

modified on Monday, September 8, 2008 5:52 AM

QuestionHow to call code behind function in JavaScript ? Pin
$unil Dhiman7-Sep-08 22:29
$unil Dhiman7-Sep-08 22:29 
AnswerRe: How to call code behind function in JavaScript ? Pin
Manas Bhardwaj7-Sep-08 22:36
professionalManas Bhardwaj7-Sep-08 22:36 
Questionfastest method Pin
Mogaambo7-Sep-08 21:22
Mogaambo7-Sep-08 21:22 
AnswerRe: fastest method Pin
N a v a n e e t h7-Sep-08 21:28
N a v a n e e t h7-Sep-08 21:28 
GeneralRe: fastest method Pin
Mogaambo7-Sep-08 22:21
Mogaambo7-Sep-08 22:21 
GeneralRe: fastest method Pin
J4amieC7-Sep-08 22:24
J4amieC7-Sep-08 22:24 
GeneralRe: fastest method Pin
N a v a n e e t h7-Sep-08 23:20
N a v a n e e t h7-Sep-08 23:20 
AnswerRe: fastest method Pin
J4amieC7-Sep-08 22:26
J4amieC7-Sep-08 22:26 
AnswerRe: fastest method Pin
blackjack21507-Sep-08 22:38
blackjack21507-Sep-08 22:38 
JokeRe: fastest method Pin
leppie7-Sep-08 22:49
leppie7-Sep-08 22:49 
AnswerRe: fastest method Pin
V.7-Sep-08 23:14
professionalV.7-Sep-08 23:14 
AnswerRe: fastest method Pin
Pete O'Hanlon7-Sep-08 23:22
mvePete O'Hanlon7-Sep-08 23:22 
GeneralRe: fastest method Pin
Mogaambo7-Sep-08 23:38
Mogaambo7-Sep-08 23:38 
GeneralRe: fastest method Pin
Pete O'Hanlon7-Sep-08 23:50
mvePete O'Hanlon7-Sep-08 23:50 
GeneralRe: fastest method Pin
Ryno Burger8-Sep-08 0:35
Ryno Burger8-Sep-08 0:35 
GeneralRe: fastest method Pin
Mycroft Holmes8-Sep-08 0:34
professionalMycroft Holmes8-Sep-08 0:34 
GeneralRe: fastest method Pin
PIEBALDconsult8-Sep-08 18:01
mvePIEBALDconsult8-Sep-08 18:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.