how can open word file in Matlab and write data in word file
15 ビュー (過去 30 日間)
古いコメントを表示
i work on ocr system in final stage we must open word file and write our result in word file. how can do this, help me.
1 件のコメント
Rik
2017 年 12 月 1 日
編集済み: Rik
2017 年 12 月 1 日
You can look into ActiveX controls. It might be tricky to get a list of available commands though.
PS the tags 'image processing' and 'pattern recognition' have nothing to do with writing text to a word file, so I removed them. If you have any issues with the OCR part of your project, you can open a separate question where these tags will be relevant.
回答 (2 件)
Arsalan jamialahmadi
2018 年 12 月 7 日
You can use DOM (Document Object Model) which is available with "Matlab Report Generator". Idea is that you write your document by code and add your data, images, text and other stuff.
1 件のコメント
SRUSHTI KHATAU
2022 年 12 月 2 日
Hi Arsalan,
I am not able to use mlreportgen API in my laptop. Is there any setting to do in word? I am using MS Office 365.
Thanks,
Srushti.
Jan
2017 年 12 月 2 日
編集済み: Jan
2017 年 12 月 2 日
Are you sure? It is a strange request to store outputs in Word. A simple text file would be much smarter and it can be opened in Word also.
A short search in the internet would reveal, that there are several methods to do this under Windows. 1. Are you working under Windows - otherwise the ActiveX approach is not applicable? 2. Did you ask an internet search engine already? If not, why not? But if you did it, please explain, what the first hits leave open.
See:
- https://www.mathworks.com/examples/matlab/community/19770-word-commands-with-actxserver
- https://de.mathworks.com/matlabcentral/answers/7161-exporting-data-from-matlab-to-ms-word
- https://de.mathworks.com/matlabcentral/answers/1531-word-com-writing-text-into-this-open-document
- https://www.mathworks.com/matlabcentral/fileexchange/56283-activex-word-control-base-commands
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Text Analytics Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!