Click here to Skip to main content
15,900,530 members
Home / Discussions / C#
   

C#

 
AnswerRe: c# and xml Pin
S. Senthil Kumar10-Nov-05 4:08
S. Senthil Kumar10-Nov-05 4:08 
GeneralRe: c# and xml Pin
ginopilotino8210-Nov-05 4:49
ginopilotino8210-Nov-05 4:49 
GeneralRe: c# and xml Pin
S. Senthil Kumar10-Nov-05 5:25
S. Senthil Kumar10-Nov-05 5:25 
GeneralRe: c# and xml Pin
ginopilotino8210-Nov-05 5:48
ginopilotino8210-Nov-05 5:48 
QuestionShow more than one row on the datagrid's Footer Pin
Fendefa10-Nov-05 1:51
Fendefa10-Nov-05 1:51 
QuestionLocating App path Pin
Mark0610-Nov-05 1:50
Mark0610-Nov-05 1:50 
AnswerRe: Locating App path Pin
S. Senthil Kumar10-Nov-05 3:44
S. Senthil Kumar10-Nov-05 3:44 
AnswerRe: Locating App path Pin
AETaylor10-Nov-05 22:09
AETaylor10-Nov-05 22:09 
QuestionHow To Rotate a 2d rectangle dynamically with Mouse movements in C sharp Pin
ArunNeyaaSoft10-Nov-05 1:43
ArunNeyaaSoft10-Nov-05 1:43 
QuestionHow To Rotate a 2d rectangle dynamically Pin
ArunNeyaaSoft10-Nov-05 1:43
ArunNeyaaSoft10-Nov-05 1:43 
QuestionRectangle and Measurement Studio Pin
M.Friedel10-Nov-05 1:41
M.Friedel10-Nov-05 1:41 
QuestionIs it in as for Internet Files, Cookie, and History? Pin
yamadakun10-Nov-05 1:09
yamadakun10-Nov-05 1:09 
Questionproblem with moving to vs 2005 Pin
Gil.Schmidt10-Nov-05 0:33
Gil.Schmidt10-Nov-05 0:33 
QuestionMultiple Connections Pin
Rashid.Mahmood9-Nov-05 23:48
Rashid.Mahmood9-Nov-05 23:48 
AnswerRe: Multiple Connections Pin
Gulfraz Khan10-Nov-05 6:22
Gulfraz Khan10-Nov-05 6:22 
GeneralRe: Multiple Connections Pin
Rashid.Mahmood11-Nov-05 2:34
Rashid.Mahmood11-Nov-05 2:34 
QuestionAbout pdb file in C# Pin
webC#9-Nov-05 22:49
webC#9-Nov-05 22:49 
AnswerRe: About pdb file in C# Pin
Heath Stewart10-Nov-05 5:20
protectorHeath Stewart10-Nov-05 5:20 
QuestionHelp needed for Active Directory code Pin
Lasse Fabricius9-Nov-05 21:49
Lasse Fabricius9-Nov-05 21:49 
QuestionDirect Crystal Printing to LPT port - Please Help Pin
Craig G Fraser9-Nov-05 21:10
Craig G Fraser9-Nov-05 21:10 
AnswerRe: Direct Crystal Printing to LPT port - Please Help Pin
Heath Stewart9-Nov-05 21:56
protectorHeath Stewart9-Nov-05 21:56 
Have you considered just setting PrintOptions.PrinterName to an empty string (string.Empty, or just "") to use the default printer? In lieu of presenting the user with printer options this would provide a consistent user experience - print to the printer they selected as the default.

Based on the documentation it doesn't seem like you can refer to an LPT port.

If you want to find out the printer name on a specific LPT port, you could P/Invoke EnumPrinters http://msdn.microsoft.com/library/en-us/gdi/prntspol_9fjn.asp[^] and enumerate the printers till you find one installed on LPTx: (keeping in mind that a printer can be on more than one LPT port, so in that case a comma-delimited list is returned so be sure to parse that as well).

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Customer Product-lifecycle Experience
Microsoft

[My Articles] [My Blog]
GeneralRe: Direct Crystal Printing to LPT port - Please Help Pin
Craig G Fraser9-Nov-05 22:32
Craig G Fraser9-Nov-05 22:32 
GeneralRe: Direct Crystal Printing to LPT port - Please Help Pin
Heath Stewart9-Nov-05 22:38
protectorHeath Stewart9-Nov-05 22:38 
GeneralRe: Direct Crystal Printing to LPT port - Please Help Pin
Craig G Fraser9-Nov-05 23:20
Craig G Fraser9-Nov-05 23:20 
AnswerRe: Direct Crystal Printing to LPT port - Please Help Pin
Heath Stewart10-Nov-05 5:11
protectorHeath Stewart10-Nov-05 5:11 

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.