Upgrade Issue: FirstPageTray and PaperTray.DefaultBin

In a older version of Aspose Words, (v5 I think) this code compiled and functioned as expected:

documentBuilder.PageSetup.FirstPageTray = PaperTray.DefaultBin;
documentBuilder.PageSetup.OtherPagesTray = PaperTray.DefaultBin;

In v 11.3.0.0 this does not compile.

Please can you provide me with corresponding v11 code?

Regards

David

Hi David,
Thanks for your inquiry. Please try using the following code. Hopefully it will fulfill your requirement.

documentBuilder.PageSetup.FirstPageTray = 0;
documentBuilder.PageSetup.OtherPagesTray = 0;

Kindly check following link for more details as papertray enumeration has been removed from Aspose.Words API.
https://blog.aspose.com/2010/09/19/the-papertray-enum-will-be-gone-from-aspose-words-to-fix-printing-from-correct-trays
Please let me know for any further assistance.
Best Regards,