web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Multiple pdf in ssrs report

(0) ShareShare
ReportReport
Posted on by 192

Hi everyone,

I am facing this issue where I am able to generate multiple pdfs per customer but they are generated like, first single report, then one zip file containing 2 reports, then one more zip file containing 4 reports,  then one more zip file containing 5 reports. and so on

I am unable to get why this is happening.

I am taking multiple customer accounts in multi-select lookup and iterating through all and taking it one by one in another parameter accountNum (which is hidden) and generating reports.

Here is my report's controller main method.

public static void main(Args _args)
{
CustomerAccountStatementContract contract;
CustomerAccountStatementController controller;
ListIterator custListIterator;

controller = new CustomerAccountStatementController();
controller.parmargs(_args);
controller.parmReportName(ssrsReportStr(CustomerAccountStatementReport, CustomerAccountStatementDesign));
controller.parmLoadFromSysLastValue(false);

if (controller.prompt())
{
while(custListIterator.more())
{
AccountNum accountNum;
accountNum = custListIterator.value();
custListIterator.next();
contract = controller.parmReportContract().parmRdpContract() as YMSCustomerAccountStatementContract;
custListIterator = new ListIterator(contract.parmCustAccountList());
contract.parmAccountNum(accountNum);
controller.parmreportcontract().parmrdpcontract(contract);
controller.parmreportcontract().parmprintsettings().printmediumtype(srsprintmediumtype::file);
controller.parmreportcontract().parmprintsettings().overwritefile(true);
controller.parmreportcontract().parmprintsettings().fileformat(srsreportfileformat::pdf);
ontroller.parmreportcontract().parmprintsettings().filename(strFmt('Customeraccountstatement_%1.pdf', accountNum));
controller.runReport();
}

}

I also want to know at what exact point pdf is generated.

kindly help

I have the same question (0)
  • Suggested answer
    Leo Chen Profile Picture
    on at

    Would recommend you to make notes of the repro steps and engage Microsoft support team by logging a support ticket. They can help validate if this is a product bug.

  • JasdeepSingh Profile Picture
    192 on at

    This is a customized report, can anyone help regarding this issue?

  • Sergei Minozhenko Profile Picture
    23,093 on at

    Hi Jasdeep,

    I wonder if the feature "Create ZIP file for multiple file downloads" from the report options is causing this issue. The form can't be opened from the main menu, but you can access it if you put SysReportAdministration as a value for the mi parameter in F&O url

    host_url/?&mi=SysReportAdministration

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 611 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 529 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 285 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans