Cant change FirstPageTray of Word Document

  • Thread starter Irfan Shaikh (irfan.shaikh
  • Start date
I

Irfan Shaikh (irfan.shaikh

I am getting below error while assinging the Printer Tray.

System.Runtime.InteropServices.COMException (0x800A1200): Value out of range
at crosoft.Office.Interop.Word.PageSetup.set_FirstPageTray(WdPaperTray prop)

here is the code I wrote.

With WordApp.ActiveDocument.PageSetup
.FirstPageTray = 261
.OtherPagesTray = 261
End With

I am using Office Word Interop in my win application.

Thanks,

Irfan Shaikh
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top