In the aspose words,i have a document in which i have several tables and that table is getting generated after document is generated. i want to cross reference the table in other places of my document using hyperlink according to some parameters, how can i achieve this in aspose. below is the code used for generating the document.
private void UpdateReportData(Document doc, Study studyData, bool checkAsposeSyntax = false)
{
R.ReportingEngine engine = new R.ReportingEngine();
if (checkAsposeSyntax)
{
ReportingEngine.UseReflectionOptimization = false;
engine.BuildReport(doc, studyData, "Study");
doc.UpdateFields();
}
else
{
DocumentBuilder builder = new DocumentBuilder(doc);
engine.Options = ReportBuildOptions.InlineErrorMessages;
var isReportGeneratedSuccessfully = true;
int loopBreakerMaxCount = 0;
do
{
loopBreakerMaxCount++;
isReportGeneratedSuccessfully = engine.BuildReport(builder.Document, studyData, "Study");
if (!isReportGeneratedSuccessfully)
{
CheckRangeText(doc);
if (loopBreakerMaxCount >= 5)
{
isReportGeneratedSuccessfully = true;
}
}
} while (!isReportGeneratedSuccessfully);
}
}