My project takes a Word template and replaces placeholders with values from a Lotus Notes document. It is currently using LotusScript (VBA) to do this in Windows which means it is using OLE. OLE does not work on the MAC platform so am trying to get Apache POI to do the same thing on the MAC. I have found code to do this called "InsertText.java" and "ParagraphText.java" that does exactly what I need and works fine on the Windows platform. But when I try it on the MAC platform the replaceText method of t he usermodel.Range class gives the following error:
method replacetext(String, String, int) is undefined for the type paragraph
I am running this using the Eclipse IDE on both Windows and MAC and am using Apache POI version 3.13. The "import org.apache.poi.hwpf.usermodel.Range;".
Is there a reason it works on Windows and on the MAC platform?
method replacetext(String, String, int) is undefined for the type paragraph
I am running this using the Eclipse IDE on both Windows and MAC and am using Apache POI version 3.13. The "import org.apache.poi.hwpf.usermodel.Range;".
Is there a reason it works on Windows and on the MAC platform?