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.LayoutType"] = 0;
//PDFPrinter.Option["General.Specification"] = -1;
PDFPrinter.Option["Paper.SheetSizeIndex"] = 10;
PDFPrinter.Option["Paper.Size"] = 10;
PDFPrinter.ApplyOptions(0);
Paper.SheetSizeIndex as per documentation it is not working
As per documentation:
"List of predefined papers into PDF-XChange 4.0. Number, specified into column Index, can be used to
specify the sheet size into property Paper.SheetSizeIndex."
Unable to change Standard
Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Tracker Supp-Stefan
-
- User
- Posts: 5
- Joined: Thu Feb 14, 2019 3:38 pm
Unable to change Standard
Last edited by gopinathrbe on Tue Feb 19, 2019 3:48 pm, edited 2 times in total.
- Tracker Supp-Stefan
- Site Admin
- Posts: 17906
- Joined: Mon Jan 12, 2009 8:07 am
- Location: London
- Contact:
Re: Unable to change Standard
Hello gopinathrbe,
I notice in your code both of these lines:
PDFPrinter.Option["Paper.SheetSizeIndex"] = 10;
PDFPrinter.Option["Paper.Size"] = 10;
And I believe you only need to use the SheetSizeIndex as specified here:
https://help.pdf-xchange.com/pdfxdapi7/paper.html
As there is no mention of "Paper.Size" in there.
So please try commenting out
// PDFPrinter.Option["Paper.Size"] = 10;
And let us know if that works for you!
Regards,
Stefan
I notice in your code both of these lines:
PDFPrinter.Option["Paper.SheetSizeIndex"] = 10;
PDFPrinter.Option["Paper.Size"] = 10;
And I believe you only need to use the SheetSizeIndex as specified here:
https://help.pdf-xchange.com/pdfxdapi7/paper.html
As there is no mention of "Paper.Size" in there.
So please try commenting out
// PDFPrinter.Option["Paper.Size"] = 10;
And let us know if that works for you!
Regards,
Stefan