2
設置Word文檔頁面佈局兩列如何設置Word文檔頁面佈局一般從MATLAB 2列,如何從MATLAB
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);
上面的代碼保存在正常模式下的Word文件中的文本,但我需要兩列。