Hi, i have a problem with export the reports, i´d like restrict the export, but i don't know what property i must use. i'll be very happy if you help me to resolve this problem.
Hello Juan,
As far as I understand by restricting you want to either control or prevent exporting of reports. I see a few options for this:
1. As simple as disabling the toolbar if that fits your need "createToolbar : false". You can always provide any required functionality from an external UI/interaction using the igReportViewer API. If that isn't an option below are more fine-grain control options:
2. Remove only the export button (API method is still available). Easiest way is to remove it right at firstPageAvailable event:
3. Disable the button. You actually have to keep it disabled as the viewer checks multiple times if export is possible and re-enables it. That way you can easily enable it again at some point:
4. Conditionally prevent exports - this is good for when you need to check user rights or some other condition. Use the "exportStarted" event and cancel it as you see fit:
I've attached a sample you can try these on. Let me know if this was helpful.
Regards,
Damyan