The sample code in the help manual shows setting landscape page layout.
In the example it refers to TPrintOptions.
What are the TPrintOptions do you have a sample of the code where this information is declared?
Thanks
This documentation was translated form the .net version, and I forgot to change it.
In VCL, instead of TPrintOptions you need to use fpo_... instead.
For example:
//Landscape
Fi.PrintOptions := Fi.PrintOptions and not fpo_nopls and (not fpo_Orientation);
//Portrait
Fi.PrintOptions := Fi.PrintOptions and not fpo_nopls or (fpo_Orientation);
But don't set PrintScale here, since the bug I mentioned in the other post will make this not work.