Get Free Trial

Can not load local report.

George Fong asked on November 4, 2015

Hi,I just download the trial version and make my first pivot.
In my html,i write

configUrl : “report.xml”,
licenseKey : “Z52R-1B1PI2-2M17-3G3C-1J0R-331U-102E-0E0P-2W06”
}, “html5”, true);

and it comes out:
Unable to open file report.xml.

It seems that this file doesn’t exist or ‘Access-Control-Allow-Origin’ header is absent in the resource requested.

but when i change  configUrl  to “”,everything is fine.

The file report.xml and the demo.html is in the same folder,what is the matter?


3 answers

Iryna Kulchytska Iryna Kulchytska Flexmonster November 4, 2015

Thank you for your question.
Do you open your html file in browser right away from the folder on your local computer?
If yes, the problem with opening report.xml file is caused by browser’s security policy. It doesn’t allow the component to access to the local file.
There are two ways here:
1. Open demo with Firefox. It doesn’t have such strict security rules.
2. Put this demo on the web server like http://localhost. When you put the component on your web server, you will be able to replace configUrl with relative URL and licenseKey could be removed from embedPivotComponent() as well – it will be taken from flexmonsterpivottablekey.txt file.

Please let me know if the above works for you.

George Fong November 5, 2015

Thank you so much ,it works.

Iryna Kulchytska Iryna Kulchytska Flexmonster November 5, 2015

Hi George,
Thank you very much for letting me know that the answer was helpful. It is always good to get feedback. Please feel free to contact us should you have any further questions.

Please login or Register to Submit Answer