We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Insert a bar code in a Word template (JAVA)

Hi,

I am using the trial version of Aspose Total for Java. So far, I enjoy the product line.

I am looking for a solution. How to insert a bar code read from an image file into a MS Word template (at certain MERGEFIELD).

Example : Product Bar Code: <>

// i copied from the sample reading an image...

BarCodeReader reader = new BarCodeReader(strBarCodeImageExtracted,BarCodeReadType.Code39Standard);
while (reader.read())
{
System.out.println("codetext: " + reader.getCodeText());
}

Now, how do I insert that image at <>

Thanks,


Tan Nguyen


This message was posted using Email2Forum by Salman Sarfraz.

Hi Tan,


Thanks for your interest in our Aspose.BarCode product. I would like to update you that for this requirement, we need to integrate Aspose.BarCode and Aspose.Words product. Please visit the documentation page here. In your template you should just have merge field like: { MERGEFIELD Image:imgFieldName }. You can then merge these fields with images by using the code suggested in the following link: http://www.aspose.com/docs/display/wordsjava/How+to++Insert+Images+from+a+Database

I hope it will help you. Please let me know in case of further assistance or questions.