Running Report Designer in TTY Mode

 
  • Hi guys!

    Good Day!

    Can we run a REPV file in TTY mode? We need it to setup BOM extraction using Task Scheduler.

    I tried it but it didn't work out. Here's my code:

     DESIGN
           
     --refresh all the files from the AVEVA Library
     PML REHASH ALL
           
     --import ReportingAddin.dll and handle error (1000,0) if dll is already loaded
     import 'ReportingAddin'
     handle (1000,0)
     endhandle
     
     --use  Aveva.Pdms.Reporting namespace  
     using namespace 'Aveva.Pdms.Reporting'
     
     --Start Creating pdf file
     !objDateTime = object DateTime()
     !objDateTime.String().Replace(':','-')
     !objExportedFile = object file('C:\TEMP\TEST\' & 'Pipe Support Index List_' & !objDateTime.String().Replace(':','-') & '.pdf')
     !strArrContent = array()
     !strArrContent[1] = ''
     !objExportedFile.WriteFile('OVERWRITE',!strArrContent)
     --End Creating PDF
     --Create PML report Object
     !strScope = '=19505/753 =19495/753'
     
     !strArrScopeforReport = !strScope.Split()
     !arrStrScopeNames  = !strArrScopeforReport.evaluate(object BLOCK('!strArrScopeforReport[!evalIndex].dbref().flnm'))
     
     !strRevpFilePath = 'C:\Temp\TEST\Pipe Support Index List.repv'
     !objReport = object PMLReport()
     
     !objReport.AddScope(!arrStrScopeNames, !strArrContent)
     !objReport.ExportAsPdf(!strRevpFilePath, !objExportedFile.fullName())
     $P TEST
     handle any
      $P ERROR
     endhandle
     
     pause 5
     
     FINISH
           
     --end mac file


    Thanks. :)
  • modify using namespace 'Aveva.Pdms.Reporting' with using namespace 'Aveva.Core.Reporting'