how to modify the table height in power point

1 vue (au cours des 30 derniers jours)
Richard ZHANG
Richard ZHANG le 2 Avr 2018
Réponse apportée : BhaTTa le 14 Oct 2024
I used the matlab to create a table in power point so far it works OK. Problem happened on trying to modify one rows width, code like this; ________________________________________;
pptFile = 'demoPorblem.pptx';
openppt(pptFile);
ppt = actxserver('powerpoint.application');
ppt.Visible = 1;
Presentation = get(ppt, 'ActivePresentation');
NS = get(Presentation.Slides, 'Count');
Table1=newSlide.Shapes.AddTable(6,6);
for i=1:6
for j =1:6
Table1.Table.Cell(i,j).Shape.TextFrame.TextRange.text = rnd;
end
end
% merge cell and modify cell(1,1)' font size
Table1.Table.Cell(1,2).Merge(Table1.Table.Cell(1,1));
Table1.Table.Cell(1,1).Shape.TextFrame.TextRange.Font.Size = 30;
% try to modify the row one's height
Table1.Table.Cell(1,1).Shape.TextFrame.AutoSize = 'ppAutoSizeShapeToFitText';
the last line does not work
--- So how can I change one row's height

Réponses (1)

BhaTTa
BhaTTa le 14 Oct 2024
i assume that you want to modify the row width, Please refer to the answer below: https://www.mathworks.com/matlabcentral/answers/797262

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by