Have you ever created a (process only) report to do data manipulation? Well, of course, you have? We all have 🙂 I decided to create a generic “report” that can handle all these different tasks. And if it’s worth doing, it’s worth overdoing, so here’s where I’m at right with the “extreme edition” of this. Check it out in this video:
Today we will talk about how to restrict Send to.., Print and Preview button on a standard report.
Is it possible to restrict Send to.., Print and Preview from a standard report in Business Central? You should know that the Send to.., Print and Preview button can’t be hidden. So what we need to do is to report the error after the user clicks Send to.., Print and Preview.
We will subscribe function to restrict standard report buttons.
As you might know, in Business Central and NAV windows client, we can view and save the report dataset from the preview page, similar to the page inspector. For the development of complex reports, it is very important to be able to analyze the data before print. This would be very useful for creating and debugging RDLC reports.
In this post we will go through the steps to create a simple RDLC report from scratch, now I know that most of the time you would copy a standard report and not create your reports from scratch, however I feel that it is important to understand the basics of how a report is created, to help you be most efficient.
One of the noisy limitations on Dynamics 365 Business Central until version 17.X was the impossibility to extend standard reports. If you want to add a simple new field to a standard report, you are forced to create an entire new report (new dataset), maybe from scratch or (better) by manually copying the standard dataset into a new .al file and then modifying it. You cannot handle the report dataset as an “extendible” object open for contributions between extensions.
Today’s post covers some programming that is not of my own making. My colleague Andreas Rascher has built a damn cool functionality that allows you to export the dataset of RDLC reports in different formats. Since we think the functionality is extremely useful, we didn’t want to keep it from you.