Regards,
vijay
Regards,
vijay
Regards,
vijay
Regards,
vijay
Regards,
vijay
Regards,
vijay
vijay makam wrote:I'm reading a character run doing the mail merge using lookup() function and replacing the character run with the returned string. Also, now I am not seeing any contents at all in my destination doc (referred by rangeB)
for(int i=0;i<range.numParagraphs();i++){
Paragraph para = range.getParagraph(i);
for(int j=0;j<para.numCharacterRuns();j++){
CharacterRun chrun = para.getCharacterRun(j);
String newText= this.lookup(chrun.text());
chrun.replaceText(chrun.text(), newText);
}
}
rangeB.replaceText(rangeB.text(), range.text());
// System.out.println("RangeB text is "+rangeB.text());
filewriter.write(rangeB.text());
}
Acetylsalicylic acid is aspirin. This could be handy too:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
|