AVEVA Community
Site
Search
User
Site
Search
User
AVEVA World
PDMS/E3D Forum
Modules
Cancel
Modules
Design Module
Running Report Designer in TTY Mode
Forums
Resources
Mentions
Sub-Groups
Tags
More
Cancel
New
Replies
2 replies
Subscribers
8 subscribers
Views
184 views
Users
0 members are here
Options
Share
More
Cancel
Related
Running Report Designer in TTY Mode
Ralph
over 8 years ago
Parents
Ralph
over 8 years ago
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. :)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Cancel
Nitin Solanki
over 1 year ago
in reply to
Ralph
modify
using namespace 'Aveva.Pdms.Reporting'
with
using namespace 'Aveva.Core.Reporting'
Cancel
Vote Up
0
Vote Down
Sign in to reply
Cancel
Reply
Nitin Solanki
over 1 year ago
in reply to
Ralph
modify
using namespace 'Aveva.Pdms.Reporting'
with
using namespace 'Aveva.Core.Reporting'
Cancel
Vote Up
0
Vote Down
Sign in to reply
Cancel
Children
No Data