How we can append an excel to a Hole
1 次查看(过去 30 天)
显示 更早的评论
I have created one template in ".dotx" format there are various holes in it and I want to put one excel as an object in that template.
Is it possible to do that, If yes, how we can do that.
3 个评论
Image Analyst
2021-5-14
What is the "one excel" that you want to make into an object and embed into a standard Excel workbook? Is it one of your variables? Is it an activeX connection to an Excel server object?
Let's say the "one excel" is just a standard double matrix. So what kind of "object" do you want to make it? Why don't you simply paste the matrix into Excel with writematrix()?
Since you're not doing that, I'm guessing your "one excel" is not such a simple thing as a double matrix, and the "Object" you want to create from it is also something a lot more complicated. But what are they? We have no idea.
If you have Windows, you can do almost anything with ActiveX that you can do in Excel manually/interactively, but we'd need to know what you want to put into Excel, and we don't know that.
采纳的回答
Rahul Singhal
2021-5-16
Hi Sapna,
You can use moveToNextHole method to programmatically navigate the holes in the template. Here is a simple example: https://www.mathworks.com/help/rptgen/ug/fill-in-the-blanks-in-a-report-form.html
-Rahul
3 个评论
Rahul Singhal
2021-5-17
Hi Sapna,
As you can see in the table in the documentation, only xlsx, pptx, and docx file types can be inserted as object in a Word report, all the other types are inserted as hyperlinks. I suggest you to save your excel file as xlsx instead of xls.
embedObj = EmbeddedObject('abc.xlsx'); % inserts as object
embedObj = EmbeddedObject('abc.xls','ABC'); % inserts as hyperlink
-Rahul
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Spreadsheets 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!