Clear Filters
Clear Filters

Report generateur Changer le return standard

3 views (last 30 days)
bonjour
après chaque paragraphe exporté vers word , il ya un "return" dans word.
Ce return est défini avec 6points d'espacemetn vertical après.
je voudrai modifier cela depuis matlab de façon a voir un return avec 8 points suplémentaires après.
je n'arrive pas à trouver comment changer le paragraphe standard depuis mon programme Matlab (dans word c'est évident)
J'ai essayer d'utiliser les style d'un modle word , il prend toute la mise en forme du style sauf le nombre de point ajouté au return !
une idée?
Merci d'avance

Accepted Answer

Ashutosh
Ashutosh on 21 Aug 2023
The Spacing of the paragraph can be modified with the help of the "OuterMargin" class of the "mlreportgen.dom". The "8" dot of vertical space of the "return" word can be observed by setting up the bottom margin of the paragraph with the help of its "Style" property.
Psuedo code for above is as follows:
% Create a paragraph with text
p = Paragraph('This is a paragraph.');
% Modify the spacing after the paragraph
p.Style = {OuterMargin('0pt', '0pt', '0pt', '8pt');
Following links can be used as the reference for knowing more about "OuterMargin" class:
  1 Comment
Daniel MONTERRAIN
Daniel MONTERRAIN on 22 Aug 2023
Merci cette solution est parfaite et résoud mon souci.
merci beaucoup

Sign in to comment.

More Answers (0)

Products


Release

R2016b

Community Treasure Hunt

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

Start Hunting!