Click here to Skip to main content
14,668,357 members
Home » Discussions » C#
   

C#

 
GeneralRe: How configure a virtual printer port to redirect it to a external program Pin
delphix528-Dec-13 1:44
Memberdelphix528-Dec-13 1:44 
GeneralRe: How configure a virtual printer port to redirect it to a external program Pin
Richard MacCutchan28-Dec-13 2:20
mveRichard MacCutchan28-Dec-13 2:20 
Questiondisplay image on crytal report Pin
Member 990020327-Dec-13 18:10
MemberMember 990020327-Dec-13 18:10 
AnswerRe: display image on crytal report Pin
Eddy Vluggen29-Dec-13 2:08
professionalEddy Vluggen29-Dec-13 2:08 
QuestionHow I can add local printer programmactly Pin
delphix527-Dec-13 9:30
Memberdelphix527-Dec-13 9:30 
AnswerRe: How I can add local printer programmactly Pin
Richard MacCutchan27-Dec-13 22:05
mveRichard MacCutchan27-Dec-13 22:05 
AnswerRe: How I can add local printer programmactly Pin
Dave Kreskowiak28-Dec-13 6:36
mveDave Kreskowiak28-Dec-13 6:36 
QuestionHow add printer from c# Pin
delphix527-Dec-13 8:13
Memberdelphix527-Dec-13 8:13 
Hello

I used this code to add printer but it did not work

try
{
oManagementScope = new ManagementScope(ManagementPath.DefaultPath);
oManagementScope.Connect();

ManagementClass oPrinterClass = new ManagementClass
(new ManagementPath("Win32_Printer"), null);
ManagementBaseObject oInputParameters =
oPrinterClass.GetMethodParameters("AddPrinterConnection");

oInputParameters.SetPropertyValue("Name", "testprinter");

oPrinterClass.InvokeMethod("AddPrinterConnection", oInputParameters, null);
return true;
}
catch (Exception ex)
{
return false;
}
GeneralRe: How add printer from c# Pin
Ron Beyer27-Dec-13 8:28
professionalRon Beyer27-Dec-13 8:28 
GeneralRe: How add printer from c# Pin
delphix527-Dec-13 8:35
Memberdelphix527-Dec-13 8:35 
AnswerRe: How add printer from c# Pin
ZurdoDev27-Dec-13 11:00
mveZurdoDev27-Dec-13 11:00 
GeneralRe: How add printer from c# Pin
delphix527-Dec-13 12:03
Memberdelphix527-Dec-13 12:03 
GeneralRe: How add printer from c# Pin
ZurdoDev27-Dec-13 14:17
mveZurdoDev27-Dec-13 14:17 
QuestionC# Function Graph Pin
erdinc3527-Dec-13 3:54
Membererdinc3527-Dec-13 3:54 
AnswerRe: C# Function Graph Pin
Richard MacCutchan27-Dec-13 4:38
mveRichard MacCutchan27-Dec-13 4:38 
GeneralRe: C# Function Graph Pin
erdinc3527-Dec-13 4:40
Membererdinc3527-Dec-13 4:40 
GeneralRe: C# Function Graph Pin
Richard MacCutchan27-Dec-13 4:49
mveRichard MacCutchan27-Dec-13 4:49 
GeneralRe: C# Function Graph Pin
erdinc3527-Dec-13 4:52
Membererdinc3527-Dec-13 4:52 
GeneralRe: C# Function Graph Pin
Richard MacCutchan27-Dec-13 4:57
mveRichard MacCutchan27-Dec-13 4:57 
Questionordered list as in python Pin
gianfrancoguzzo27-Dec-13 3:17
Membergianfrancoguzzo27-Dec-13 3:17 
AnswerRe: ordered list as in python Pin
Richard MacCutchan27-Dec-13 3:39
mveRichard MacCutchan27-Dec-13 3:39 
GeneralRe: ordered list as in python Pin
gianfrancoguzzo27-Dec-13 4:18
Membergianfrancoguzzo27-Dec-13 4:18 
AnswerRe: ordered list as in python Pin
Nicholas Marty27-Dec-13 3:40
professionalNicholas Marty27-Dec-13 3:40 
GeneralRe: ordered list as in python Pin
gianfrancoguzzo27-Dec-13 3:46
Membergianfrancoguzzo27-Dec-13 3:46 
GeneralRe: ordered list as in python Pin
Nicholas Marty27-Dec-13 3:50
professionalNicholas Marty27-Dec-13 3:50 

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.