Evaluating version 8 for an update revealed an issue setting the required page/sheet size. I am developing in C#.
I checked the API documentation, the examples and developer forums but could not find any hint.
Here is an excerpt of my code:
Code: Select all
printer.set_Option("Paper.LayoutType", "Normal");
printer.set_Option("Paper.SheetSizeIndex", -2);
logger.Debug(String.Format("Page [layout: {0}, width: {1}, height: {2}]", pageLayout, width, height));
printer.set_Option("Paper.SheetWidth", width);
printer.set_Option("Paper.SheetHeight", height);
printer.ApplyOptions(0);
What am I doing wrong?