Divooka Reference

Report Export

4 nodes

On this page 4

Folder Variable

Function

The environment variable that moves the reports folder.

Signature
FolderVariable() -> Text
string FolderVariable()

Returns

resultText
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Report Export
Package
Data Analytics

Report Page Count

Function

How many pages the report takes as a PDF document, or how many slides as a PowerPoint deck.

Signature
ReportPageCount -> Integer
    report: Report
    format: Report Format
int ReportPageCount(
    Report report,
    ReportFormat format = ReportFormat.Pdf)

Parameters

nametypedefaultdescription
reportReport—The report.
formatReport FormatPdfPdf for pages, Pptx for slides; a Word document's pages are its word processor's to count.

Returns

PagesInteger
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Report Export
Package
Data Analytics

Reports Folder

Function

Where reports are written when Save Report is given only a name: a Reports folder in the Divooka folder of the user's documents, or the folder the DIVOOKA_REPORTS_FOLDER environment variable names.

Signature
ReportsFolder() -> Text
string ReportsFolder()

Returns

FolderText
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Report Export
Package
Data Analytics

Save Report

Function

Writes the report as a PDF document (.pdf, A4 pages), a PowerPoint deck (.pptx, 16:9 slides) or a Word document (.docx) - the extension decides - and gives back the file's full path. In a deck or a Word document each chart is the application's own, its data inside the file, where the application has a chart that draws it. A name on its own, or a relative path, is put in the reports folder; a full path is written where it says.

Signature
SaveReport -> (Path: Text, writtenAs: Text)
    report: Report
    path: Text
string SaveReport(
    Report report,
    out string writtenAs,
    string path = "Report.pdf")

Parameters

nametypedefaultdescription
reportReport—The report.
pathTextReport.pdfThe file: "Machine Health.pdf", "Review.pptx", "Summary.docx", or a full path.

Returns

PathText
writtenAsText
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Report Export
Package
Data Analytics