comment interdire aux lignes d'un tableau de s''imprimer sur 2 pages

1 次查看(过去 30 天)
Bonjour,
J'utilise report generator pour mettre des tableaux de données dans un rapport word. (tableaux de données produit dans une autre application matlab).
parfois une ligne de tableau (trop haute) s'imprime sur 2 pages à suivre. je souhaite interdire cela avec donc un "saut de page" avant cette ligne.
ej pense qu'il faut utilisert la propriété (ou l'objet ?)
breakAcrossPagesObj = AllowBreakAcrossPages(tf) forces a row to start on the next page when it cannot fit on the current page and tf = false
mais je ne comprends pas comment ajouter cette propriété (ou objet) à mom tableau "dataTable" (ou format de tableau)
faut il écrire quel que chose comme :
dataTable.row.Style=[dataTable.row.Style,{AllowBreakAcrossPages('false')}]; (ne marche pas)
ou dataTable.Style=[dataTable.Style,{AllowBreakAcrossPages('false')}]; (ne marche pas)
ou dataTable.AllowBreakAcrossPages('false'); (ne marche pas)
il me faut un exemple qui marche de cette commande AllowBreakAcrossPages('false').
Merci

回答(2 个)

Arka
Arka 2023-8-17
Hi Daniel,
The “PageBreak” or the “PageBreakBefore” classes available for the “MATLAB Report Generator” can be used to add a Page Break wherever needed.
You can go through the MathWorks documentation links below for “mlreportgen.dom.PageBreak” and “mlreportgen.dom.PageBreakBefore” to learn more about them:
  1. https://www.mathworks.com/help/rptgen/ug/mlreportgen.dom.pagebreakbefore-class.html
  2. https://www.mathworks.com/help/rptgen/ug/mlreportgen.dom.pagebreak-class.html
Hope this helps.
Thank you.

Daniel MONTERRAIN
Sorry but this answer didn(t help me
until now no solution
Thank you.

产品


版本

R2016b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!