HI Kent, I'm trying to print a regular Custom Report that I created, that has been added to the 'Custom Reports' menu under Sales Order. Ideally, this report would be run from a button link on a Sage panel. If the menu name of the report is 'My Report', can you help me with the syntax? Would the 'STANDARD' argument be required if it is a custom report added via Report Manager? Any help would be greatly appreciated - the below returns 'Report file not found or does not exist' when calling both LoadReport and ProcessReport. retVaL = oSession.SetProgram(oSession.LookupTask("SY_ReportRuntime_ui")) myCRh = oSession.GetObject ("SY_ReportRuntime_rpt") If myCRh= 0 Then ' Show error message End If Set myCRo = oSession.AsObject(myCRh) sCompanyKey = oSession.CompanyKey sUserKey = oSession.UserKey sReportFile = "" tmp = myCRo.LoadReport("My Report","STANDARD","SO",sCompanyKey,sUserKey, sReportFile) retVal = myCRo.ProcessReport("print")
↧