Click here to Skip to main content
16,004,782 members
Home / Discussions / C#
   

C#

 
QuestionDynamically load DLL class to the project Pin
Virtek11-May-06 6:37
Virtek11-May-06 6:37 
AnswerRe: Dynamically load DLL class to the project Pin
LongRange.Shooter11-May-06 6:49
LongRange.Shooter11-May-06 6:49 
GeneralRe: Dynamically load DLL class to the project Pin
Virtek11-May-06 8:00
Virtek11-May-06 8:00 
QuestionBinding a checkbox to a bool? Pin
iswoolley11-May-06 5:53
iswoolley11-May-06 5:53 
AnswerRe: Binding a checkbox to a bool? Pin
J4amieC11-May-06 6:03
J4amieC11-May-06 6:03 
GeneralRe: Binding a checkbox to a bool? Pin
iswoolley11-May-06 7:16
iswoolley11-May-06 7:16 
QuestionOnly able to print once? Pin
melanieab11-May-06 5:33
melanieab11-May-06 5:33 
AnswerRe: Only able to print once? Pin
LongRange.Shooter11-May-06 6:56
LongRange.Shooter11-May-06 6:56 
Having a GDI exception occur tends to make me think that your problem is not with the printing, but rather in creating the bitmap. Where in your code does the stack trace point at? Does the bitmap get saved and have you looked at it to make sure it is the page you expected to print?

Two other things:
You can save yourself one object creation and a little bit of GC stress by changing the last four lines of code to this:
    if ( printDialog1.ShowDialog() == DialogResult.OK )
    {
           pd.PrintPage += .....
    }
    // pd.Dispose();  // our MS consultants say never do this!
}

GeneralRe: Only able to print once? Pin
melanieab11-May-06 9:15
melanieab11-May-06 9:15 
GeneralRe: Only able to print once? Pin
melanieab12-May-06 6:05
melanieab12-May-06 6:05 
GeneralRe: Only able to print once? Pin
Martin#16-Nov-06 22:57
Martin#16-Nov-06 22:57 
Questionoverrride onpaint Pin
Sasuko11-May-06 4:27
Sasuko11-May-06 4:27 
AnswerRe: overrride onpaint Pin
Ravi Bhavnani11-May-06 4:55
professionalRavi Bhavnani11-May-06 4:55 
AnswerRe: overrride onpaint Pin
leppie11-May-06 7:52
leppie11-May-06 7:52 
QuestionWhy doesn't my code crash? Passing Int64 to Int32 Pin
nicknotyet11-May-06 4:07
nicknotyet11-May-06 4:07 
AnswerRe: Why doesn't my code crash? Passing Int64 to Int32 Pin
Judah Gabriel Himango11-May-06 5:22
sponsorJudah Gabriel Himango11-May-06 5:22 
GeneralRe: Why doesn't my code crash? Passing Int64 to Int32 Pin
nicknotyet11-May-06 5:54
nicknotyet11-May-06 5:54 
GeneralRe: Why doesn't my code crash? Passing Int64 to Int32 Pin
Judah Gabriel Himango11-May-06 5:59
sponsorJudah Gabriel Himango11-May-06 5:59 
GeneralRe: Why doesn't my code crash? Passing Int64 to Int32 Pin
led mike11-May-06 6:21
led mike11-May-06 6:21 
GeneralRe: Why doesn't my code crash? Passing Int64 to Int32 Pin
nicknotyet11-May-06 11:44
nicknotyet11-May-06 11:44 
GeneralRe: Why doesn't my code crash? Passing Int64 to Int32 Pin
Matt Newman11-May-06 19:26
Matt Newman11-May-06 19:26 
GeneralRe: Why doesn't my code crash? Passing Int64 to Int32 Pin
nicknotyet12-May-06 3:37
nicknotyet12-May-06 3:37 
AnswerRe: Why doesn't my code crash? Passing Int64 to Int32 Pin
leppie11-May-06 22:13
leppie11-May-06 22:13 
GeneralRe: Why doesn't my code crash? Passing Int64 to Int32 Pin
nicknotyet12-May-06 3:42
nicknotyet12-May-06 3:42 
QuestionGrid Control recommendations Pin
Aaron Schaefer11-May-06 4:03
Aaron Schaefer11-May-06 4:03 

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.