Thanks to Mathworks trainer, Scott Cowan, for providing the following answer via email:
Simulink Report Generator product facilitates that very task. However, without Simulink Report Generator, you’ll be forced to use the Stateflow API to programmatically access the data dictionary… and then use MATLAB functions to export the information, e.g., to Excel. Open the Simulink model that contains the desired Stateflow data dictionary, and then invoke the following MATLAB commands:
% Access the handle to the root Simulink model
s = slroot
% Access the Stateflow Chart block in that Simulink model
c = s.find('-isa','Stateflow.Chart','-and','Name', <Chart Name>)
% Access the data defined in its dictionary at the level of the chart
data = c.find('-isa','Stateflow.Data')
% Access the events defined in its dictionary at the level of the chart
event = c.find('-isa','Stateflow.Event')
% Explore the data and event attributes programmatically
data(1)
data(2) % etc.
event(1)
event(2) % etc.
% Build a table (using a cell array) of such information
table = { data(1).Name data(1).Scope data(1).DataType;
data(2).Name data(2).Scope data(2).DataType;
data(3).Name data(3).Scope data(3).DataType } % etc.
% Export the information, e.g., to Excel
xlswrite('StateflowDictionary.xls',table)