PageSetup.LineNumberRestartSetting = LineNumberRestartSetting.NewPage
PageSetup.Orientation = Orientation.Landscape ' If using Professional version, put your serial key below.ĬomponentInfo.SetLicense('FREE-LIMITED-KEY')ĭim document As DocumentModel = DocumentModel.Load('%#Print.docx%')įor Each section As Section In document.Sectionsĭim pageSetup As PageSetup = section.PageSetup