Using the Report Component, one can generate highly customizable reports in Word, PowerPoint and HTML with integrated and interactive 3D models.
In this example we will load a VTFx model file and use this in a Word report together with some other information and metadata gathered from the model.
cee::Str vtfxFile = TutorialUtils::testDataDir() +
"scoobs.vtfx";
if (!source->
open(vtfxFile, 0))
{
return;
}
int stateId = stateInfos[0].id();
propApplier.applyToView(gcView);
{
propBuilder.addFromView(*gcView);
exporter.addProperties(*propColl);
exporter.addResources(*resources);
}
if (!exporter.saveCase(memoryFile.
get()))
{
return;
}
{
snapshot->
setTitle(
"Scoobs model exported from Ceetron Report");
}
cee::Str templateFile = TutorialUtils::testDataDir() +
"SingleVTFx.docx";
if (generator.generate("SingleVTFx_report.docx"))
{
return;
}