How to insert page breaks in numbers2/12/2023 You can instruct the exporter to avoid any usage of page breaks (so that report contents are simply exported continuously) by using the following parameter:ĮtParameter(AWExporterParameter.PAGE_BREAKS, AWExporterParameter.PAGE_BREAKS_NONE) You can change the page breaks inserted to regular (not section) breaks by using the following parameter:ĮtParameter(AWExporterParameter.PAGE_BREAKS, AWExporterParameter.PAGE_BREAKS_NORMAL) Microsoft Word requires different headers/footers should be placed in different sections. The “section breaks” mode is chosen as default because there may be the headers and footers throughout the document that contain different data. Page Breaks #Īspose.Words for JasperReports supports three ways page breaks are inserted between document pages: Note you can use different units of measure in the same string or omit some of margin values. Where the following units of measure are allowed: “left_margin right_margin top_margin bottom_margin”, The value of the parameter is a string of the form JasperReports: import .* ĪWDocExporter exporter = new AWDocExporter() ĮtParameter(AWExporterParameter.PAGE_MARGINS, “1in 1in 0.5in 0.5in”) You can change the default 1in value by specifying what page margins the exporter should try to enforce. That is, page margins are set to the value of 1in or less, depending on the report design. If some report elements are located closer to page edges, then the corresponding page margins are reduced appropriately. ![]() All page margins are set to a default value that is used by Microsoft Word when creating a new document (1 inch). Hence, Aspose.Words for JasperReports uses a special algorithm to work this around. Unfortunately, at the moment the JasperReports print model does not allow exporters to detect page margins specified in the report design. Let’s discuss all of the features in details. Those are page margins, page breaks of different types, and the support for Microsoft Word fields that allows, for example, export page numbers that will be dynamically updated while the generated document is being edited. ![]() The new version includes a number of features that we hope you will find useful. We have just released Aspose.Words for JasperReports 1.3.0.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |