Click here to Skip to main content
15,921,716 members
Home / Discussions / C#
   

C#

 
GeneralRe: Value in Database Pin
Heath Stewart30-Dec-03 7:36
protectorHeath Stewart30-Dec-03 7:36 
GeneralRe: Value in Database Pin
Mazdak30-Dec-03 9:30
Mazdak30-Dec-03 9:30 
GeneralCreating an XML File Pin
deanoA29-Dec-03 22:08
deanoA29-Dec-03 22:08 
GeneralRe: Creating an XML File Pin
Colin Angus Mackay29-Dec-03 22:36
Colin Angus Mackay29-Dec-03 22:36 
GeneralRe: Creating an XML File Pin
Manster31-Dec-03 3:31
Manster31-Dec-03 3:31 
QuestionHow should I call an exe file using C# Pin
Saqib Razzaq29-Dec-03 20:25
Saqib Razzaq29-Dec-03 20:25 
AnswerRe: How should I call an exe file using C# Pin
Yaron K.29-Dec-03 20:38
Yaron K.29-Dec-03 20:38 
GeneralRe: How should I call an exe file using C# Pin
Saqib Razzaq29-Dec-03 20:49
Saqib Razzaq29-Dec-03 20:49 
GeneralRe: How should I call an exe file using C# Pin
Juergen Posny29-Dec-03 22:09
Juergen Posny29-Dec-03 22:09 
GeneralRe: How should I call an exe file using C# Pin
Saqib Razzaq29-Dec-03 22:30
Saqib Razzaq29-Dec-03 22:30 
GeneralExpand/Collapse feature in c# Pin
pc_2k1129-Dec-03 19:35
pc_2k1129-Dec-03 19:35 
GeneralRe: Expand/Collapse feature in c# Pin
Heath Stewart30-Dec-03 5:40
protectorHeath Stewart30-Dec-03 5:40 
GeneralChanging the paper size at run time Pin
Yaron K.29-Dec-03 19:32
Yaron K.29-Dec-03 19:32 
GeneralRe: Changing the paper size at run time Pin
Mazdak29-Dec-03 23:42
Mazdak29-Dec-03 23:42 
GeneralRe: Changing the paper size at run time Pin
Mehdi Moshtaghi30-Dec-03 0:27
Mehdi Moshtaghi30-Dec-03 0:27 
GeneralRe: Changing the paper size at run time Pin
Yaron K.30-Dec-03 2:25
Yaron K.30-Dec-03 2:25 
GeneralRe: Changing the paper size at run time Pin
Heath Stewart30-Dec-03 5:35
protectorHeath Stewart30-Dec-03 5:35 
You have to construct a new PaperSize like so:
private void pd_PrintPage(object sender, PrintPageEventArgs e)
{
  // I don't rem
  e.PageSettings.PaperSize =
    new PaperSize("Custom", 11.69 * 100, 16.54 * 100);
}
You should also take a look at the PrinterSetttings.PaperSizes documentation. This is a collection that contains each PaperSize that the printer supports. You can enumerate and determine if the printer supports A3 and then get that PaperSize:
foreach (PaperSize size in PrinterSettings.PaperSizes)
  if (size.Kind == PaperKind)
    return size;
return null; // or throw an Exception that A3 is not supported


 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
GeneralRe: Changing the paper size at run time Pin
IntegraSoft31-Dec-03 9:37
IntegraSoft31-Dec-03 9:37 
GeneralRe: Changing the paper size at run time Pin
Heath Stewart31-Dec-03 9:40
protectorHeath Stewart31-Dec-03 9:40 
GeneralRe: Changing the paper size at run time Pin
IntegraSoft31-Dec-03 9:46
IntegraSoft31-Dec-03 9:46 
GeneralRe: Changing the paper size at run time Pin
Heath Stewart31-Dec-03 11:04
protectorHeath Stewart31-Dec-03 11:04 
GeneralRe: Changing the paper size at run time Pin
IntegraSoft1-Jan-04 7:50
IntegraSoft1-Jan-04 7:50 
GeneralRe: Changing the paper size at run time Pin
Heath Stewart1-Jan-04 9:29
protectorHeath Stewart1-Jan-04 9:29 
GeneralRe: Changing the paper size at run time Pin
Mazdak30-Dec-03 6:26
Mazdak30-Dec-03 6:26 
Generalinterop - array of structs with embedded strings Pin
lavinder29-Dec-03 17:45
lavinder29-Dec-03 17:45 

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.