Hello,
I'm currently using the RunHTMLReport method of Repository object to automatize the report generation.
The reports, however, are not loading in any web browser. I have enable JavaScript in all of them, but I only get a "Loading..." message and nothing more.
Thus, I tried to export the HTML report directly from EA (shift + F8). And, surprisingly, the result was the same.
In the javascript console from Chrome, I have the following message: Uncaught TypeError: Cannot read property 'length' of null . It appears to happen in the following method:
function changeCSS(theClass, element, value, target)
{
var cssRules;
target = eval(target + '.document.styleSheets');
if (browser == 'ie6' || browser == 'ie7')
{
cssRules = 'rules';
} else if (browser == 'ff' || browser == 'op')
{
cssRules = 'cssRules';
}
for (var S = 0; S < target.length; S++)
{
for (var R = 0; R < target[S][cssRules].length; R++)
//Uncaught TypeError: Cannot read property 'length' of null
{
if (target[S][cssRules][R].selectorText == theClass)
{
try
{
target[S][cssRules][R].style[element] = value;
}
catch (e)
{
}
}
}
}
}
What can I do about it? I'm generating the report with the following method call:
r.GetProjectInterface().RunHTMLReport(r.GetProjectInterface().GUIDtoXML(modelGuid), outputPath, imageFormat, "<default>", ".html");