Click here to Skip to main content
15,923,689 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to auto download updates and install Pin
Not Active8-Jun-07 10:57
mentorNot Active8-Jun-07 10:57 
GeneralRe: How to auto download updates and install Pin
Kevin McFarlane8-Jun-07 11:03
Kevin McFarlane8-Jun-07 11:03 
QuestionMerge cells in word 2003 Pin
Larza1238-Jun-07 9:50
Larza1238-Jun-07 9:50 
AnswerRe: Merge cells in word 2003 Pin
Goalie358-Jun-07 10:27
Goalie358-Jun-07 10:27 
GeneralRe: Merge cells in word 2003 Pin
Larza12315-Jul-07 23:56
Larza12315-Jul-07 23:56 
AnswerRe: Merge cells in word 2003 Pin
wowo60823-Apr-09 0:07
wowo60823-Apr-09 0:07 
Questionprinting html file without printdialog show up Pin
pnpfriend8-Jun-07 9:16
pnpfriend8-Jun-07 9:16 
AnswerRe: printing html file without printdialog show up Pin
turbochimp9-Jun-07 6:42
turbochimp9-Jun-07 6:42 
Have you looked at PrintDocument?

ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.NETDEVFX.v20.en/cpref8/html/T_System_Drawing_Printing_PrintDocument.htm

Example:

class Program 
{
   static Font printFont = new Font("Arial", 10);

   static void Main(string[] args)
   {
      PrintDocument doc = new PrintDocument();
      doc.PrintPage += new PrintPageEventHandler(doc_PrintPage);
      doc.Print();
   }

   static void doc_PrintPage(object sender, PrintPageEventArgs e)
   {
      float leftMargin = e.MarginBounds.Left;
      float topMargin = e.MarginBounds.Top;

      float yPos = topMargin + (printFont.GetHeight(e.Graphics));
      // In the line below, 'Hello' would be replaced with the next line from 
      // whatever you were trying to print.
      // It's actually a little more involved, but not terrible.
      e.Graphics.DrawString("Hello", printFont, Brushes.Black,
      leftMargin, yPos, new StringFormat());

      e.HasMorePages = false;
   }
}




The most exciting phrase to hear in science, the one that heralds the most discoveries, is not 'Eureka!' ('I found it!') but 'That's funny...’

QuestionDirectSound with not ending stream Pin
Dirk Reske8-Jun-07 8:52
Dirk Reske8-Jun-07 8:52 
AnswerRe: DirectSound with not ending stream Pin
Leslie Sanford8-Jun-07 16:45
Leslie Sanford8-Jun-07 16:45 
QuestionHow can I remove the repeated items from an Array? Pin
Khoramdin8-Jun-07 7:19
Khoramdin8-Jun-07 7:19 
AnswerRe: How can I remove the repeated items from an Array? [modified] Pin
eggsovereasy8-Jun-07 7:37
eggsovereasy8-Jun-07 7:37 
GeneralRe: How can I remove the repeated items from an Array? Pin
Guffa8-Jun-07 10:22
Guffa8-Jun-07 10:22 
GeneralRe: How can I remove the repeated items from an Array? Pin
eggsovereasy8-Jun-07 11:02
eggsovereasy8-Jun-07 11:02 
AnswerRe: How can I remove the repeated items from an Array? Pin
Judah Gabriel Himango8-Jun-07 7:44
sponsorJudah Gabriel Himango8-Jun-07 7:44 
GeneralRe: How can I remove the repeated items from an Array? Pin
eggsovereasy8-Jun-07 9:10
eggsovereasy8-Jun-07 9:10 
GeneralRe: How can I remove the repeated items from an Array? Pin
S. Senthil Kumar9-Jun-07 5:49
S. Senthil Kumar9-Jun-07 5:49 
GeneralRe: How can I remove the repeated items from an Array? Pin
Judah Gabriel Himango10-Jun-07 8:06
sponsorJudah Gabriel Himango10-Jun-07 8:06 
QuestionCheck XML Document for Well Formness Pin
Ronakkumar Patel8-Jun-07 6:02
Ronakkumar Patel8-Jun-07 6:02 
QuestionWebClient with Credentials.. Pin
Ronakkumar Patel8-Jun-07 6:00
Ronakkumar Patel8-Jun-07 6:00 
QuestionHow to block cookies during HTTP Get or Post operation Pin
Ronakkumar Patel8-Jun-07 5:59
Ronakkumar Patel8-Jun-07 5:59 
QuestionGet list of exported functions from Unmanaged DLL Pin
Ronakkumar Patel8-Jun-07 5:57
Ronakkumar Patel8-Jun-07 5:57 
QuestionAlternative to Socket? Pin
Hamed Musavi8-Jun-07 5:50
Hamed Musavi8-Jun-07 5:50 
AnswerRe: Alternative to Socket? Pin
Not Active8-Jun-07 5:55
mentorNot Active8-Jun-07 5:55 
GeneralRe: Alternative to Socket? Pin
Hamed Musavi8-Jun-07 6:19
Hamed Musavi8-Jun-07 6:19 

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.