Click here to Skip to main content
15,891,423 members
Home / Discussions / C#
   

C#

 
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 
Hi,

This a a request for some seriously urgent help please...

I have an application that needs to print a crystal report directly to a printer attached to a PC. The Print needs to be direct ie: the user is not presented with a preview or a print dialog box. The pc is standalone and not connected to any network.

Printing a crystal report directly to a printer is easy if the pc is networked because you can set the PrintOptions.PrinterName to the name of the printer as identified on the network. I need to know how to do the equivalent of this but by specifying the LPT port number. Does anyone know how to do this.

Here is my function where i set the print options

private void SetPrintOptions()<br />
{<br />
   CrystalDecisions.CrystalReports.Engine.PrintOptions printOptions = crDocument.PrintOption;    <br />
   printOptions.PrinterName = CURRENT_PRINTER;<br />
   printOptions.PaperOrientation = PaperOrientation.DefaultPaperOrientation;<br />
   printOptions.PaperSize = PaperSize.PaperA4;<br />
   printOptions.PrinterDuplex = PrinterDuplex.Default;<br />
   printOptions.PaperSource = PaperSource.Auto;<br />
}


Any help will be greatly appreciated.

Craigo


** Vision - The ability to look further than your eyes can see Suspicious | :suss:
AnswerRe: Direct Crystal Printing to LPT port - Please Help Pin
Heath Stewart9-Nov-05 21:56
protectorHeath Stewart9-Nov-05 21:56 
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 
GeneralRe: Direct Crystal Printing to LPT port - Please Help Pin
Craig G Fraser10-Nov-05 21:42
Craig G Fraser10-Nov-05 21:42 
QuestionDrawing Lines On A Form Pin
ytubis9-Nov-05 21:07
ytubis9-Nov-05 21:07 
AnswerRe: Drawing Lines On A Form Pin
Heath Stewart9-Nov-05 21:45
protectorHeath Stewart9-Nov-05 21:45 
QuestionNeed Help with .NET Pin
allenmpcx9-Nov-05 19:26
allenmpcx9-Nov-05 19:26 
AnswerRe: Need Help with .NET Pin
AETaylor10-Nov-05 22:14
AETaylor10-Nov-05 22:14 
QuestionDifferent Source Codes Pin
nosferatu20009-Nov-05 19:23
nosferatu20009-Nov-05 19:23 
AnswerRe: Different Source Codes Pin
Luis Alonso Ramos9-Nov-05 19:35
Luis Alonso Ramos9-Nov-05 19:35 
QuestionMaskedTextBox Problem ! Pin
Caio19859-Nov-05 17:42
Caio19859-Nov-05 17:42 
GeneralRe: MaskedTextBox Problem ! Pin
Heath Stewart9-Nov-05 22:11
protectorHeath Stewart9-Nov-05 22:11 
QuestionRetrieving an image data type Pin
SyedZubair9-Nov-05 17:39
SyedZubair9-Nov-05 17:39 
AnswerRe: Retrieving an image data type Pin
Heath Stewart9-Nov-05 21:59
protectorHeath Stewart9-Nov-05 21:59 
QuestionException-When minimized and restored Pin
cloudking119669-Nov-05 17:34
cloudking119669-Nov-05 17:34 

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.