Info

此问题已关闭。 请重新打开它进行编辑或回答。

Problem in file saving when creating word report

2 次查看(过去 30 天)
I am trying to create a word(doc) report with many autogenerated figures and text using report generator.
I have specified a filename (somename) in the setup file for the generated word report. At the end of the processing, the report generator creates a file somename.doc at the set path along with a filesave dialogbox asking to save. If I click on save it does not allow to save to the somename.doc just created. seems like the file is locked or readonly .I have to save as another file, say 'newname.doc'.
so each time I get two doc files in the path, somename.doc and newname.doc.
the file somename.doc will not contain any figures in it, but only the autogenerated text, where as the file newname.doc has all figures and text. Although I get the desired output in newname.doc, I do not want two files to be created, only somename.doc with all contents correct.
This does not happen with rtf report but only word-doc report. Has anybody encountered the same problem. Please help....

回答(0 个)

此问题已关闭。

Community Treasure Hunt

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

Start Hunting!

Translated by