Can I use Japanese in PPT file with the Report Generator?

조회 수: 1 (최근 30일)
Yoshio Onoe
Yoshio Onoe 2020년 6월 18일
답변: Rahul Singhal 2020년 7월 21일
I have used Japanese to make pdf in Report Generator.
This week I have tried using Japanese to make ppt file in Report Generator. But I can't.
Can I use Japanese to make ppt file in Report Generator?

답변 (2개)

Utsav Agrawal
Utsav Agrawal 2020년 6월 19일
It is my understanding that you want to use Japanese in a PPT file created with MATLAB report generator.
One way of doing this would be create a report as a word document first and then convert it to a PowerPoint file.
To create a report as a word document, set the File format to “Word Document (RTF)” in Report options inside MATLAB report generator.
After completing the word document, you can convert it into a PPT file.

Rahul Singhal
Rahul Singhal 2020년 7월 21일
Hi Yoshio,
Yes, you should be able to add Japanese characters in a presentation.
In the below example, I added both english and japanese characters in the presentation and ran it in my english machine.
% Create a presentation
import mlreportgen.ppt.*
ppt = Presentation("myPresentation3.pptx");
open(ppt);
% Add a slide to the presentation
slide = add(ppt,"Title and Content");
% Replace the title for the slide
replace(slide,"Title","Slide with Japanese Content");
% Create paragraph for the content of the slide
japaneseStr = [char(26085) char(26412)];
para = Paragraph("Japanese content: ");
append(para,Text(japaneseStr));
% Replace the content for the slide with the paragraph
replace(slide,"Content",para);
% Close and view the presentation
close(ppt);
rptview(ppt);
Output:
Sample Output
Thanks,
Rahul

카테고리

Help CenterFile Exchange에서 Update PowerPoint Presentation Content에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by