AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Softartisans xfile8/3/2023 If you want to save multiple PDF documents from the same workbook, but with different options set, you can repeat this process. Once you have set all desired PageSetup options, you can then save the worksheet to a PDF document: There are additional PageSetup properties that may prove useful for a complete list, see the PageSetup documentation. For example, we can make the content smaller than normal by using the Zoom property, specify the order in which pages should appear in the PDF document, and print all of the cell comments at the end of the document by setting the relevant properties on the worksheet: Other PageSetup properties are useful for specifying how the content should be rendered to the PDF document. HeaderFooterSection.Section hfSection = The header and footer will be printed on each page of the PDF: The PageSetup property can also be used to set a header or footer. These properties will be reflected in the final PDF document: Using the worksheet’s PageSetup property, we can specify the page size, orientation, and margins. This tutorial will walk through that process.įor this example, we will open an existing workbook, in order to save the first worksheet of the workbook to a PDF document:ĮxcelApplication xla = new ExcelApplication () This is achieved by setting properties on the worksheet’s PageSetup property before calling the SavePdf method. When saving Excel worksheets to a PDF document using the PDF rendering extension methods introduced in OfficeWriter 10.0, it is often useful to be able to specify details about the resulting PDF document, or about how the rendering should behave.
0 Comments
Read More
Leave a Reply. |