on 11-28-2018 1:00 PM
Hi All,
I have a business case that requires that a user have the ability to select several layouts at once on one document eg a sales order and print them out at the same time. The function i'm looking for is much like the print picking sheet on a sales order pic below. Your help is greatly appreciated.
Regards,
Jermaine
Hi All,
Found a solution to my problem. I have identified the code for printing layouts. Take note this only works for Crystal report layouts.
SAPbobsCOM.CompanyService oCmpSrv;
SAPbobsCOM.ReportLayoutsService oReportLayoutService;
SAPbobsCOM.ReportLayoutPrintParams oPrintParam;
SAPbouiCOM.Application oApp;
oApp = (SAPbouiCOM.Application)Application.SBO_Application;
SAPbobsCOM.Company oCompany = (SAPbobsCOM.Company)oApp.Company.GetDICompany();
oCmpSrv = oCompany.GetCompanyService();
oReportLayoutService = (SAPbobsCOM.ReportLayoutsService)oCmpSrv.GetBusinessService(SAPbobsCOM.ServiceTypes.ReportLayoutsService);
oPrintParam = (SAPbobsCOM.ReportLayoutPrintParams)oReportLayoutService.GetDataInterface(SAPbobsCOM.ReportLayoutsServiceDataInterfaces.rlsdiReportLayoutPrintParams);
oPrintParam.LayoutCode = "RDR20006";//Layout ID
oPrintParam.DocEntry = Int32.Parse(EditText17.Value);//Document Number Textbox
oReportLayoutService.Print(oPrintParam);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Use printer seq option to print multiple layout from same document.
Regards,
Nagarajan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
if you are usign Crystal Report formats, perhaps you can design one format which includes all formats you need.
Kind regards
Agustín
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.