L
Lews
Guest
Is there really no way to skip writing optional parameters in C#. In VB you can choose what parameter to set by writing for example (PrintToFile:=True). However in C# you cant do this but this makes things really hard, for example the method below that prints a word document. I want to set 4 or 5 of the 18 parameters but now I have to find the default value for each of them and set it? That will take ages, especially since Im doing alot of these kind of operations.
Please tell me that there is some better way to solve this...
PrintOut ( System.Object Background , System.Object Append , System.Object Range , System.Object OutputFileName , System.Object From , System.Object To , System.Object Item , System.Object Copies , System.Object Pages , System.Object PageType , System.Object PrintToFile , System.Object Collate , System.Object ActivePrinterMacGX , System.Object ManualDuplexPrint , System.Object PrintZoomColumn , System.Object PrintZoomRow , System.Object PrintZoomPaperWidth , System.Object PrintZoomPaperHeight )
Please tell me that there is some better way to solve this...
PrintOut ( System.Object Background , System.Object Append , System.Object Range , System.Object OutputFileName , System.Object From , System.Object To , System.Object Item , System.Object Copies , System.Object Pages , System.Object PageType , System.Object PrintToFile , System.Object Collate , System.Object ActivePrinterMacGX , System.Object ManualDuplexPrint , System.Object PrintZoomColumn , System.Object PrintZoomRow , System.Object PrintZoomPaperWidth , System.Object PrintZoomPaperHeight )