I have the import com.aspose.words.* in my Java class and successfully created an instance of the Document; but I soon ran into a syntax error. This is a code snippet:
Document wordMeasurementSummaryReport = new Document(); // no problem
wordMeasurementSummaryReport.removeAllChildren(); // no problem
Date now = new Date(); // no problem
wordMeasurementSummaryReport.CustomDocumentProperties.Add( "Creation Date", now );
The fourth line (right above) gives a syntax error:
wordMeasurementSummaryReport.CustomDocumentProperties cannot be resolved or is not a field. What is wrong with that statement?