I believe you have to quote the tags and the interpreter doesn't understand two double quotes. Try this code. lblclass.expression = '"%s" & [type] & "%s"' % ("<BOL>", "</BOL>") I tried modifying this to use on dynamic labels and I get this instead of the data in the attribute field: [ATTACH=CONFIG]28558[/ATTACH] I must be missing some python formatting syntax.
... View more