export barcode or QR code to excel/word/pdf

Hi,I try to export barcode field using this code:function Row_Export($rs)
{
//$this->ExportDoc->Text .= “my content”; // Build HTML with field value: $rs[“MyField”] or $this->MyField->ViewValue
//var_dump($this->ExportDoc);
$this->ExportDoc->Text .= $this->barcode1->ViewValue;
}But it is not worked, it is just render the string.how can I do that

Since you are doing custom export by Row_Export event, you need to handle it yourself. In the original code, the script set the ExportHrefValue to the temp image of the barcode and the export functions get the image and put it in the export data according to the type (i.e. PDF/PhpSpreadsheet/PHPWord). You may refer to the source code of the extensions (or Custom View Tags) and see how it works.

I tried to use ExportHrefValue but it is not work for word/pdf/excel . only for HTML work fine.could you guide me with example.

arbei wrote:

You may refer to the source code of the extensions (or Custom View Tags) and see how it works.