.NET FRAMEWORK BUG?
-
After hours of googling, i concluded... it is NOT possible to set a custom paper size through the pagesettings class. (i mean printdocument.defaultpagesettings.papersize = new papersize(...) ) Please correct me if i'm wrong!! :doh: (PD: i've found lots, and i mean lots of posts in many web sites about this ... wow ... nobody can set a new papersize? I tested this in vb 6.0 and i CAN do so in three lines of code, but seems impossible to do in C#)
-
After hours of googling, i concluded... it is NOT possible to set a custom paper size through the pagesettings class. (i mean printdocument.defaultpagesettings.papersize = new papersize(...) ) Please correct me if i'm wrong!! :doh: (PD: i've found lots, and i mean lots of posts in many web sites about this ... wow ... nobody can set a new papersize? I tested this in vb 6.0 and i CAN do so in three lines of code, but seems impossible to do in C#)
-
itis not a bug reflex cuz it is so easy but hiding some much it is in PaperSize property in the PrinterSettings.PaperSizes Collection and in only one line of code:suss: ByMindOnlyYouCanDoIt
- Via PrinterSettings.PaperSizes you cannot add a CUSTOM PaperSize (You CAN do so in .NET Framework 2.0, BUT, it has the SAME BUG!!!) 2) Via DefaultPageSettings.PaperSize you CAN create a custom PaperSize, BUT it is NOT used on the printer...