Dear All
I have make a report with two design,
I want to show two design same time of a report,
I mean when click on output menu then show to two design same time
how to do it
please help me
Thanks
*This post is locked for comments
Dear All
I have make a report with two design,
I want to show two design same time of a report,
I mean when click on output menu then show to two design same time
how to do it
please help me
Thanks
*This post is locked for comments
Seems you are lost in code. You were not supposed to write any code in existing controller classes. you were supposed to call controller classes by writing job or by using any clicked() method. find below sample job to run sales invoice report by code. Note that I am taking firstonly record of journal for demonstration purpose. You'll pass context as per your need. Also you can find many code samples about how to call a report by code.
static void SampleRunReportByCode(Args _args) { SrsReportDataContract contract; SalesInvoiceContract rdpContractClass; CustInvoiceJour tblCustInvoiceJour; LogisticsAddressCountryRegionISOCode code = 'US'; // Create a controller to run the report. SrsReportRunController controller = new SrsReportRunController(); // set the report name and design to be run controller.parmReportName(ssrsReportStr(SalesInvoice, Report)); // suppress the parameter dialog as this is to be run by the batch service controller.parmShowDialog(false); // choose to save the executed report as a pdf file //reportFilePath = System.IO.Path::Combine(this.getTempPath(), ssrsReportStr(SalesInvoice, Report) + #FileExtensionPDF); //this.setReportRunControllerPrintToFile(controller, reportFilePath); // Set any required parameter values here by first getting the report contract. contract = controller.parmReportContract(); // And then fill in that contract based on the contract type (Rdl or Rdp) // Example of using an Rdp class specific data contract rdpContractClass = contract.parmRdpContract() as SalesInvoiceContract; // Set the required parameter rdpContractClass.parmCountryRegionISOCode(code); tblCustInvoiceJour.clear(); select firstOnly RecId from tblCustInvoiceJour; rdpContractClass.parmRecordId(tblCustInvoiceJour.RecId); // run the report controller.runReport(); }
Dear Ali Raza Zaidi
this code snippet is perform in controller main method ?
when I use in main method then error show super() not allowed here
this is my main method
public static client void main(Args args)
{
BBFlockwiseController controller = new BBFlockwiseController();
BBFlockwiseController controller1 = new BBFlockwiseController();
SRSPrintDestinationSettings settings;
super();
controller.parmReportName(ssrsReportStr(BBFlockCostingReport,summary)); controller.parmReportName(ssrsReportStr(BBFlockCostingReport,summary)) ;
controller.startOperation();
controller1.parmReportName(ssrsReportStr(BBFlockCostingReport,summary)); controller.parmReportName(ssrsReportStr(BBFlockCostingReport,PrecisionDesign1)) ;
controller1.startOperation();
}
Hi Azam you can run two report design with following code snippet.
SrsReportRunController controller1 = new SrsReportRunController();
SrsReportRunController controller2 = new SrsReportRunController();
SRSPrintDestinationSettings settings;
super();
controller1.parmReportName(ssrsReportStr(CustomerReport,Design1));
controller1.startOperation();
controller2.parmReportName(ssrsReportStr(CustomerReport,Design2));
controller2.startOperation();
You can call reports by code. Doing so you can call two controller classes which will basically open two reports. Having followed previously suggested practice, will make sure that two reports will open at same time, without closing the other.
so how to open two design in two report viewer , click on single output menu
, only one design specify in controller
No, you will not set two designs in dialogshow()
In fact there is no subject/description about any design in dialogshow()
you specify your designs in controller class usually or at time of calling report.
I have NOT specified any where in blog post to use design name in dialogshow()
please send me any example, how to set two design in dialogShow()
Dear Sohaib Cheema
yes I want print two design in different instances of report viewer
please tell me how is it
This is possible if you want to print two design in different instances of report viewer. The two design will open at same time on screen but in different panes(report viewers)
Because a single call gives you single instance of report viewer, in ax.
André Arnaud de Cal... 291,391 Super User 2024 Season 2
Martin Dráb 230,445 Most Valuable Professional
nmaenpaa 101,156