How we can get the Multiple copies of Sales Invoice SSRS Report....?

Hi All,

Hi,I am working in sales invoice SSRS report.Here I need to print multiple copies of same report like 1.Original copy for buyer,2.Duplicate copy for Transporter,3.Assessing copy for central excise and 4.Extra copy.While i am taking the print out of the report i should get those copies of the same report at a time.Is it possible in SSRS Reports…?

If possible pls post your valuable suggestions accordingly…

Thanks in advance…!!!1

Suresh .M

It Might be help U,

See the 1st article of Feb5

https://arundax.wordpress.com/tag/print-management/

https://arundax.wordpress.com/tag/ax-2012/

AX 2012 SSRS Report : Multiple copies without close
If the report viewer form is being shown, we do not want to closethis.This will let you view multiple copies of same report under print management settings.Overriding this method to detach the form after report viewer is shown. This will provide us the capability to show multiple report viewers.

Reference : \Classes\SrsPrintMgmtController\dialogShow

protected void dialogShow()
{
SysOperationDialog sysOperationDialog;
FormRun formRun;

if(useReportViewerForm)
{
dialog.run();
this.dialogPostRun();

// Get formrun and detach the formrun object, so not blocking.
sysOperationDialog = dialog as SysOperationDialog;
formRun = sysOperationDialog.formRun();
formRun.detach();
}
else
{
super();
}
}

What report you are trying to Print?

I have printed sales packing slip using following code. Hope this will help you,

void printPackingSlipReport()

{

SalesPackingSlipController salesPackingSlipController;

SalesPackingSlipContract salesPackingSlipContract;

SRSReportExecutionInfo printMgmtExecutionInfo;

Args args = new Args();

SrsReportRunImpl srsReportRun;

CustPackingSlipJour custPackingSlipJour;

ReportName reportName = “SalesPackingSlip.Report”;

int documentId;

CustPackingSlipVersion custPackingSlipVersion;

;

select custPackingSlipJour

where custPackingSlipJour.SalesId == WMSPickingRoute.transRefId;

custPackingSlipVersion = custPackingSlipVersion::findLatest(custPackingSlipJour.RecId);

args.record(custPackingSlipJour);

salesPackingSlipController = new salesPackingSlipController();

salesPackingSlipController.parmReportName(reportName);

salesPackingSlipContract = salesPackingSlipController.parmReportContract().parmRdpContract();

salesPackingSlipContract.parmRecordId(custPackingSlipVersion.RecId);

salesPackingSlipController.parmArgs(args);

srsReportRun = salesPackingSlipController.parmReportRun() as SrsReportRunImpl;

printMgmtExecutionInfo = salesPackingSlipController.parmReportContract().parmReportExecutionInfo() as SrsPrintMgmtExecutionInfo;

printMgmtExecutionInfo = new SrsPrintMgmtExecutionInfo();

printMgmtExecutionInfo.parmReportRunId(newGuid());

documentId++;

salesPackingSlipController.parmReportRun(srsReportRun);

salesPackingSlipController.parmReportContract().parmPrintSettings().printMediumType(SRSPrintMediumType::Printer);

salesPackingSlipController.parmReportContract().parmPrintSettings().printerName(IgnPackingSlipReportPrint::find(curUserId()).PrinterName);

//salesPackingSlipController.parmReportContract().parmPrintSettings().overwriteFile(true);

//salesPackingSlipController.parmReportContract().parmPrintSettings().fileFormat(SRSReportFileFormat::PDF);

salesPackingSlipController.parmReportContract().parmReportExecutionInfo(printMgmtExecutionInfo);

//salesPackingSlipController.parmReportContract().parmPrintSettings().fileName(@“C:\Report1.pdf”);

salesPackingSlipController.runReport();

}

Hi Vishal,

Thanks for your reply…

But, here my requirement is little different i need to print multiple copies of Sales Invoice report at a time with different header texts like 1.Original for buyer 2.Duplicate copy for transporter 3. Assessing copy for central excise and 4.Extra copy.Totally 4 copies of same report i need to print at a time with those header texts in right side top of the report.

If we have any solution regarding this pls update it…

Thanks a lot…

Suresh.M

Hi Suresh,

Just go through these links…

Its working for my PO.

Hope it’ll work on ur report

u Don’t have to write codes, only u have to make some functional set up

http://technet.microsoft.com/EN-US/library/dd309731.aspx

http://technet.microsoft.com/en-us/library/hh209383.aspx

http://technet.microsoft.com/en-us/library/dd309731.aspx

Hi Suresh,

i have also same requirement. please guide me.

Thanks & Regards,

Kumar