VCARD in QR code format

521 views
Skip to first unread message

Simon Knott

unread,
Jul 20, 2015, 9:48:17 AM7/20/15
to xmpie...@googlegroups.com
Hi Guys

Thought someone might be able to see where I may be going wrong with this, I am trying to produce a QR code that gives you a VCARD that when you scan with a mobile device it will allow you to create a contact in your phone book.

I have used the following code:

XMPBarcode("QRCode", 

"BEGIN:VCARD\n
VERSION:3.0\n
N:"&@{Name var}&"\n
FN:\n
ORG:"&@{Company var}&"\n
TITLE:"&@{Position var}&"\n
TEL;TYPE=WORK,VOICE:"&[BranchAddresses][0].[Tel]&"\n
TEL;TYPE=MOBILE,VOICE:"&@{Mobile}&"\n
LABEL;TYPE=WORK:"&[BranchAddresses][0].[Display Name]&"\n
ADR:"&@{ADDRESS}&"\n
EMAIL:"&@{Email}&"\n
URL:"&@{URL var}&"\n
END:VCARD\n"

)

My result is that I get a duplication of the fields when I scan it in on a mobile device. any one ever got a working example or might be able to see where I am going wrong?

Thanks


couch

unread,
Jul 23, 2015, 8:03:36 PM7/23/15
to XMPie Interest Group, simon....@gmail.com
In many cases I find i get different results from different barcocde scanners. - eg some will support only v2.1 rather than v3 of the vcard spec. The full spec is here if you're interested: https://en.wikipedia.org/wiki/VCard


Reply all
Reply to author
Forward
0 new messages