Hi all,
I’m very glad to see the CustomBarcodeGenerator system. It’s very useful.
I have one problem with it though. When the Word Barcode field uses a field value internally then the barcode isn’t rendered.
For example we use { DISPLAYBARCODE
“[[case-id]]-{ PAGE }” \h 720 } to encode a page number as part of the barcode. This is passed to our CustomBarcodeGenerator as “[[case-id]]-1”,"[[case-id]]-2","[[case-id]]-3" etc. We then replace the [[case-id]] part of the string, generate the bar-code image and return that.
“[[case-id]]-{ PAGE }” \h 720 } to encode a page number as part of the barcode. This is passed to our CustomBarcodeGenerator as “[[case-id]]-1”,"[[case-id]]-2","[[case-id]]-3" etc. We then replace the [[case-id]] part of the string, generate the bar-code image and return that.
If I leave out the { PAGE } part then the barcode is added into the document, but otherwise it is left out altogether. I suspect that aspose.word is passing the right data through but then tries to place the barcode into the page by searching for “[[case-id]]-1” (etc), not "[[case-id]]-{ PAGE }"
Has anyone else had any experience with this? any tricks/workarounds?