A very useful function of PODs is the ability to update them when changes have been made. For example, let's say a company uses their logo as a header for all reports and documents on their system. If they decide to change their logo, it would be a very tedious process to manually remove and insert the new logo in each and every document. But if this logo was originally created and added as a POD file to the document, it can easily be updated to the new logo without all that hassle.The following steps will walk you through how to update PODs. Or, please refer to our Updating PODs video.
Note 1: Updating PODs is a feature that works only with AutoTag in MS Word.
Note 2: Update PODs only updates PODs in the DOCX template. It does not update variables or data sources.
None- This is the default setting and will not frame your PODs nor allow them to be updated
Bookmark- Frames PODs allowing the start and end to be anywhere in the document. This allows you to easily create PODs that are segments of larger paragraphs or tables. However, because they can be any shape or size these PODs are more difficult to locate later on.
Replacing the POD File
Updating the POD through the .NET Engine
Updating the POD through the Java Engine
Updating PODs using the Java engine is very similar to how it is done using the .NET engine. The difference is in a tool you have to run. In the Java engine you have to run the net.windward.tools.UpdatePODs class. The following command runs the class.
java -cp <class path> net.windward.tools.UpdatePODs <rdlx file> <report file>
The <class path> must include the following items separated by a semicolon (a colon on Unix-like systems). Make sure you provide the full path to the items depending on where they are located on your system.
The WindwardReports.properties file with a valid license key must be located in the current directory as well.
Example. This assumes that all files, including WindwardReports.properties are located in the current directory.
java -cp WindwardReports.jar;commons-codec-1.6.jar;jaxen.jar;dom4j-1.6.1.jar;log4j.jar net.windward.tools.UpdatePODs SamplePODs.rdlx SampleReport.docx
You should receive an output similar to this
reading POD files: