cancel
Showing results for 
Search instead for 
Did you mean: 

Choose several specific layouts when printing a document

tichaona_gaza
Participant
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

tichaona_gaza
Participant
0 Kudos

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);




Answers (2)

Answers (2)

kothandaraman_nagarajan
Active Contributor
0 Kudos

Hi,

Use printer seq option to print multiple layout from same document.

Regards,

Nagarajan

tichaona_gaza
Participant
0 Kudos

HI Nagarajan,

I'm well aware of this feature. I have 4 layouts, so i want user to pick maybe 1,3 and 4 then print. Therefore the need for sdk to accomplish this.

Regards,

Tich

agustin_marcoscividanes
Active Contributor
0 Kudos

Hi

if you are usign Crystal Report formats, perhaps you can design one format which includes all formats you need.

Kind regards

Agustín

tichaona_gaza
Participant
0 Kudos

Hi,

Thanks for your suggestion but i want my user to have the ability to pick certain or all when they are printing.

Regards,

Tich