The only required function for the Reports API is the processFile() function. All other functions are optional
Called when there is a file to process. The Report command should process the file without modifying it and use the dw.ResultsPalette.SiteReports() function, the addResultItem() function, or the resWin.addItem() function to return information about the file. automatically releases each file's DOM when it is finished.
strFilePath
strFilePath is the full path and filename of the file to process.
expects nothing.
Called at the start of the reporting process, before any reports are run. If the Report command returns false from this function, the Report command is excluded from the report run.
target
target is a string that indicates the target of the report session. It can be one of the following values: "CurrentDoc" , "CurrentSite" , "CurrentSiteSelection" (for the selected files in a site), or "Folder: + the path to the folder the user selected" (for example, "Folder:c:temp" ).
expects true if the report runs successfully; false if target is excluded from the report run.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117