Using REF inside an INCLUDEPICTURE field?
I've been tasked with generating QR Codes for some documents (Word 2010) using values already filled in by users in some form fields.
I've set up an ASK field in the document that collects a number.
I then tried to "concatenate" that value into a URL that queries the Google Charts API.
This is the content of the INCLUDEPICTURE field: INCLUDEPICTURE "http://chart.apis.google.com/chart?cht=qr&chs=120x120&chl=2011-AEX-{REF NumCaso}" \* MERGEFORMAT
The problem is that the QR Code seems to be generated with the string as-is: "2011-AEX-{REF Nu开发者_运维问答mCaso}" (the REF value is not replaced).
Is there any way I can accomplish that with a reference to the field?
Works for me exactly the way you have it...
Are you sure that the { REF } subfield is a proper field? Subfields may look like ordinary curlies, but they're not. If you typed in the {}'s by hand or cut/pasted from somewhere, delete your {REF...} and insert a new subfield marker with Ctrl-F9, then type in the " REF NumCaso " inside the curlies. Notice the spaces.
You need to have one space between the { and the REF, and also one between NumCaso and }. I can't tell if you just forgot to copy them when posting here, but you do need them.
精彩评论