Word Report generator Tableau Empecher une ligne de tablerau de se mettre sur 2 pages
1 次查看(过去 30 天)
显示 更早的评论
bonjour
J'exporte des données matlab vers des tableaux word avec le report generator.
Parfois une ligne s"'imprime sur 2 pages. Je voudrait empêcher cela enforcanbt la nouvelle ligne du tableau à s"'imprimer surla pas suivante.
J'ai vu qu'il faut utiliser l'objet AllowBreakAcrossPages(tf) avec tf= false
mais je n'arrive pas à comprendre comment utiliser cette commande ou cet objet.
est ce qu'il faut l'associer au tableau oiu à chaque ligne et comment ?. (dans Style?)
il me faudrait un exemple de mise en oeuvre de cet objet sur un tableau
Merci
0 个评论
采纳的回答
Kausthub
2023-9-1
编辑:Kausthub
2023-9-14
Hi Daniel Monterrain,
I understand that when the table overflows, you would like it in the next page rather than the next line and you need guidance on how to use the AllowBreakAcrossPages() class.
You can refer to the example in the MATLAB command-line help for this class:
>> help mlreportgen.dom.AllowBreakAcrossPages
Yes, you are right about using the AllowBreakAcrossPages(), it should be used with “style” and should be associated to a row.
For example:
table.row(6).Style = {AllowBreakAcrossPages(false)};
Here is the documentation to the AllowBreakAcrossPages():
Hope it helps!
3 个评论
Kausthub
2023-9-7
编辑:Kausthub
2023-9-7
I have attached a working example and the corresponding output pictures and you could manipulate it as per your needs.
Please run the testPageBreak.m file and try commenting and uncommenting line 31 in the example to see the difference.
table.row(3).Style = {AllowBreakAcrossPages(false)};
Hope this helps!
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!