Publishing a document-style report locally

The document-style report is generated locally by using the lib files that are copied into the project. The publishSynch method publishes the document-style report asynchronously. The document-style report generation is finished when this method returns. The second argument specifies the limit to the query results, similar to the Preview query limit preference from the user interface. Use 0 for a full document-style report generation.

IDocumentgenerator generator = new LocalDocumentGenerator( new RPEEngine());
EngineStatus result = generator.publishSynch(docspec, 0);

The status result can be checked to verify that the document-style report generation is successful. When a document-style report generation is successful, the status is finished.