Posted 19 February 2020, 4:15 am EST
I’m using Active Reports 14 with the JS Viewer running in one application calling a dotnet core hosted AR web service in another (using the JSViewerCoreMVCApplication1 sample application as the server); as shown in the following diagram from yourselves:
https://www.grapecity.com/activereports/docs/v14/online/images/DifDomain_CORS.png
Although I am able to get reports displaying correctly using the following viewer code:
<script type="text/javascript">
let viewer;
function loadViewer() {
viewer = GrapeCity.ActiveReports.JSViewer.create({
element: '#viewerContainer',
reportService: {
url: 'http://localhost:5050/api/reporting',
securityToken: '42A9CD80A4F3445A9BB60A221D042FCC'
}
});
viewer.openReport("RdlReport1.rdlx");
}
</script>
When exporting the report as for example a PDF, rather than the resultant file being called RdlReport1.pdf, instead it is exporting as RdlReport1.rdlx. If I then change the extension of the file to .pdf I can see that the file is actually a PDF, and that it is just being named incorrectly. Is there any guidance you can provide to resolve this issue?