Page 1 of 1

custom sheet size not working

Posted: Wed Feb 20, 2019 12:29 pm
by gopinathrbe
CPXCPrinter PDFPrinter = null;
CPXCControlEx prnFactory = new CPXCControlEx();
PDFPrinter = prnFactory.get_Printer("", "PDF-XChange Standard V7", "<REG CODE>", "<DEV CODE>") as CPXCPrinter;
PDFPrinter.Option["Save.SaveType"] = "Save";
PDFPrinter.Option["Save.ShowSaveDialog"] = "No";
PDFPrinter.Option["Save.WhenExists"] = "Overwrite";
PDFPrinter.Option["Saver.ShowProgress"] = "false";
PDFPrinter.Option["Save.RunApp"] = "false";
PDFPrinter.Option["Paper.SheetSizeIndex"] = -2;
PDFPrinter.Option["Paper.SheetWidth"] =3000 ;
PDFPrinter.Option["Paper.SheetHeight"] = 4000;
PDFPrinter.ApplyOptions(0);

Always getting same paper size 8.27 x 11.69 in