Requirements to excel export (images)

6 Ansichten (letzte 30 Tage)
Ankur
Ankur am 17 Jan. 2024
Kommentiert: Ankur am 22 Jan. 2024
If images are inserted into the 'description' or 'rationale' field within the Requirements Editor, are these images exported as well to excel using 'ReqXlsExport'? Currently have a script which does the same as 'ReqXlsExport' in 2022b but images are not brought over and was wondering if this is the case on 23b.
  2 Kommentare
Ramtej
Ramtej am 18 Jan. 2024
Hi Ankur,
Currently, there is also no option to export images to Excel using 'reqXlsExport' in MATLAB R2023b. Typically, Excel is not a common format for storing image data due to its nature as a spreadsheet application designed for numerical data and text. Images are binary data and are usually stored in formats like JPEG, PNG, TIFF, etc.
Ankur
Ankur am 22 Jan. 2024
Thank you, was wondering if there is anything novel in the actual feature in 23b.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Josh Kahn
Josh Kahn am 18 Jan. 2024
Hi @Ankur,
reqXlsExport is meant to be an example that you can tailor to your needs. I would recommend something more robust for data transfer like OSLC or ReqIF. Another option is generating a report from the requirement set instead. We have seen other customers use MS Word docs from report gen successfully for this.
If you are doing some sort of analysis on the requirements in Excel, you can probably do that using the MATLAB APIs instead also so that you don't have to export. I would be interested in hearing more about your use case.
Either way, you can push HTML from the requirement description cell instead of plain text by changing this line in the reqXlsExport file
FROM:
% Special attributes
switch(attributeStr)
case 'Description'
str = rqItem.getDescriptionAsText();
return;
TO:
% Special attributes
switch(attributeStr)
case 'Description'
str = rqItem.Description;
return;
Then, I think you can just use this VBA macro to tell excel to parse the HTML:
Alternatively, it should be possible to use MATLAB instead of VBA but you would also have to write your own exporter that connects to an ActiveX server to do the same thing.
Hope this helps,
Josh
  1 Kommentar
Ankur
Ankur am 22 Jan. 2024
Thanks for your answer. The only reason for the export is because of the end user's preference. We usually do any analysis with Requirements Editor anyways, this is just the final output. Also have utilised the Report Gen in requirements editor which is a really useful tool.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange

Produkte


Version

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by