how to set the word doc page layout in two column from matlab

1 回表示 (過去 30 日間)
sachin gowda
sachin gowda 2015 年 9 月 25 日
回答済み: durgesh singh 2021 年 4 月 8 日
ow to set the word doc page layout normal to 2 column from mat lab,
default its takes a normal mode when i try to write text to word file,
i want to change page layout normal to 2 column mode
File='C:\Users\ies\Documents\MATLAB\test.docx'; %use full path [pth,name,ext]=fileparts(file); w=Word(file,true); %create document and make visible
addText(w,'Introduction','Heading 1',2); %create a heading, 2 spaces after addText(w,recognizedText); %add some text newline(w,6); %6 newlines pic=sprintf('%s/fig.png',pth);
saveAs(w,file); Above code save text in normal mode word file, i need two coloumn

回答 (1 件)

durgesh singh
durgesh singh 2021 年 4 月 8 日
Use following code line in activex server. word.ActiveWindow.Selection.Sections.First.PageSetup.TextColumns.SetCount(2)

カテゴリ

Help Center および File ExchangeMATLAB Report Generator についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by