From: Irfan Shaikh (irfan.shaikh on 22 Dec 2009 11:55 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
From: Doug Robbins - Word MVP on 22 Dec 2009 14:16 You may find some information at http://pubs.logicalexpressions.com/pub0009/LPMArticle.asp?ID=183 that will help. -- Hope this helps. Please reply to the newsgroup unless you wish to avail yourself of my services on a paid consulting basis. Doug Robbins - Word MVP, originally posted via msnews.microsoft.com "Irfan Shaikh (irfan.shaikh(a)genmills.com)" <IrfanShaikhirfanshaikhgenmillscom(a)discussions.microsoft.com> wrote in message news:45A359DF-F5B5-46FB-BE2B-8E8A80B537C9(a)microsoft.com... > 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
|
Pages: 1 Prev: Blank Userform Next: creating new excel workbook in code without opening excel |