.net - Programmatically add footer to Office Word/Excel document -


I am trying to create a solution like this:

The system creates what the inclusion How is this possible programmatic form of document file name in DocumentPictor (preferably .NET)?

I have to work on code, where I already come from Excel in C #. It's partial, and you have to start ...

  Microsoft.Office.Interop.Excel.Application excelapp = new Microsoft.Office.Interop Excel.Application (); Excelapp.Visible = True; Microsoft.Office.Interop.Excel._Workbookbook = (Microsoft.Office.Interop.Excel._Workbook) excelapp.Workbooks.Add (Microsoft.Office.Interop.Excel.XlWBatemplate.xlWBATWorksheet); ; Microsoft.Office.Interop.Excel._worksheet sheet = (Microsoft.Office.Interop.Excel._Worksheet) Book. ActiveSite; Sheet.get_Range ("A1", "N999") Font.Size = "8"; Sheet.Page Setup.Paras Size = Microsoft.office.interop.execel.experpairsize Axel Paper Legacy; Sheet.Page Setup.Ormentation = Microsoft.office.interop.execel.xpoOoOrmentation. XL Landscape; Sheet.PageSetup.PrintTitleRows = "$ 3: $ 5"; Sheet.Page set up Printable column = "$ a: $ B";  

You need a lot of code for this specific task, but there are relevant rows for the header (or something repeated on top of each page):

  sheet.PageSetup.PrintTitleRows = "$ 3: $ 5"; Sheet.Page set up Printable column = "$ a: $ B";      

/ P>


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -