How to save barcode as the footer of last page of word template?

Hi,

I want to save the barcode image directly as the footer of my template & not as a separate image on disk.

My current code saves the barcode as an image on disk.

-------------------------------------------------------------------------------------------

public static void createBarcode(ConditionObject conditionObj, String xml) {

BarCodeBuilder b = new BarCodeBuilder();

b.setAutoSize(true);

b.setSymbology(Symbology.CODE39STANDARD);

b.setCodeText(conditionObj.getPolicyNum()+ XMLDataExtraction.getDocumentId(xml));

b.save("c:\\test.png");

}

---------------------------------------------------------------------------------------------------------------------------------------------

Also the text is visible in barcode, I don't want to show it.

Can you please help out?

Thanks

Bhoomica

Hi Bhoomica,

Thanks for considering Aspose.

Please call BarCodeBuilder.setCodeTextVisible(false) method and pass false as an argument. The codetext will no longer appear on the barcode image.

And for inserting the barcode image directly in a word template, please post on Aspose.Words forum (http://www.aspose.com/community/forums/aspose.words-for-.net-java-and-reporting-services/75/showforum.aspx). Our support team will help you there.