SSRS Print Destination Default

I have an SSRS that extends SRSReportDataProviderBase where I want to be able to default the Print Destination on the dialog to File Format = PDF and disable the dropdown so the users cannot change it.

Can someone point me in the right direction?

The class I am working with in BankReconciliationDP, but it would apply to almost any other SSRS using RDP so that when you have a dialog with Parameters under ‘General’ tab, you select the ‘Destinations’ button and when File is selected (Screen is the default), the File Format drop down would be already be set to PDF and the field would be disabled.

Thanks.

You can’t do such things in data provider classes; data providers are called much later in the process.

You can set the default destination in the report controller class:

settings = this.parmReportContract().parmPrintSettings();
settings.printMediumType(SRSPrintMediumType::File);
settings.fileFormat(SRSReportFileFormat::PDF);

But why you disable format selection on “almost any other SSRS report using RDP”? Wouldn’t you make the system much less useful?

Thank you! Sorry about my wording, I’m only doing it on one specific report, I just meant the option is available in all the SSRS reports. It was a management request that output be limited to only PDF for this one.

I was able to get the defaults to work correctly, but have not found how to disable it. Is there a way to disable it so that the user cannot change the file format? It is a management request.