2
Answers

Save file in Pdf Format

Ramco Ramco

Ramco Ramco

1d
108
1

Hi

 I have below code and i want File should get automatically get created in c:\Drive of User. It should not ask user to save file.

SAPbobsCOM.CompanyService oCmpSrv;
SAPbobsCOM.ReportLayoutsService oReportLayoutService;
SAPbobsCOM.ReportLayoutPrintParams oPrintParam;
oCmpSrv = oCompany.GetCompanyService();
oReportLayoutService = (ReportLayoutsService)oCmpSrv.GetBusinessService(SAPbobsCOM.ServiceTypes.ReportLayoutsService);
oPrintParam = (ReportLayoutPrintParams)oReportLayoutService.GetDataInterface(SAPbobsCOM.ReportLayoutsServiceDataInterfaces.rlsdiReportLayoutPrintParams);
oPrintParam.LayoutCode = "PM10014";
oPrintParam.DocEntry = 555;
oReportLayoutService.Print(oPrintParam);

 

Thanks

Answers (2)
Next Recommended Forum