hi all i am using this code fro print invoice but all time print in Default printer. i need change to other printer how to can make it
if (con() == false) return; SAPbobsCOM.ReportLayoutsService oReportLayoutService = (SAPbobsCOM.ReportLayoutsService)Vcmp.GetCompanyService().GetBusinessService(SAPbobsCOM.ServiceTypes.ReportLayoutsService); SAPbobsCOM.ReportLayoutPrintParams oReporPrintParams = oReportLayoutService.GetDataInterface(SAPbobsCOM.ReportLayoutsServiceDataInterfaces.rlsdiReportLayoutPrintParams); SAPbobsCOM.ReportParams oReportParam = oReportLayoutService.GetDataInterface(SAPbobsCOM.ReportLayoutsServiceDataInterfaces.rlsdiReportParams); oReportParam.ReportCode = "INV2"; SAPbobsCOM.DefaultReportParams oReportParaDefault = oReportLayoutService.GetDefaultReport(oReportParam); oReporPrintParams.LayoutCode = "INV20012";// oReportParaDefault.LayoutCode; oReporPrintParams.DocEntry = num; oReportLayoutService.Print(oReporPrintParams);