How we can append an excel to a Hole
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Sapna Chaudhary
il 14 Mag 2021
Commentato: Rahul Singhal
il 17 Mag 2021
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 Commenti
Image Analyst
il 14 Mag 2021
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.
Risposta accettata
Rahul Singhal
il 16 Mag 2021
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 Commenti
Rahul Singhal
il 17 Mag 2021
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
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Spreadsheets in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!