1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
print(HANDLES.(f{i}),'-dmeta') %.................Copying to clipboard
FILE = [doss '\' serie '.doc'];
APP = actxserver('Word.Application');
APP.Visible = 1;
if ~exist(FILE,'file')
Doc=APP.Documents.Add;
Doc.PageSetup.Orientation = 'wdOrientLandscape';
Doc.PageSetup.TopMargin = 4/0.07;
Doc.PageSetup.BottomMargin = 4/0.07;
Doc.PageSetup.LeftMargin = 4/0.07;
Doc.PageSetup.RightMargin = 4/0.07;
%Doc.SaveAs(FILE);
else Doc=invoke(APP.Documents,'Open',FILE); %Open the file
end
invoke(APP.Selection, 'Paste');
%Ici un truc pour redimentioner
%invoke(Doc,'SaveAs',FILE);
%invoke(APP,'Quit');
%delete(APP); |