I want to set default tray while printing docx.
For now, I have below code where I am passing tray name in string and that will be set as default tray
Microsoft.Office.Interop.Word.Application WordApplication = new WordApplication();
var options = WordApplication.Options;
if (!string.IsNullOrWhiteSpace(trayName)) //trayName is input parameter in string
{
options.DefaultTray = trayName;
}
Similarly, how can I set default tray in the aspose for all the documents?
Also, I come across with the link FirstPageTray
where the value setting in FirstPageTray and OtherPageTray is in int data type, but I am passing tray name in string as input. I hope I am going in the right direction of setting DefaultPageTray.