Go Back   MarcomCentral (PTI) and FusionPro User Communities > Support > Issues, Questions, Etc.

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old February 19th, 2015, 07:40 AM
jorgenbackus jorgenbackus is offline
Forum n00b
 
Join Date: Feb 2015
Posts: 3
Question QR codes in DSF

Hi,

Maybe this is not a topic for this forum, but I'll give it a shot:

In FusionPro I created a template for a business card with a QR-code on it. Because the QR-code has to be green, I used the text-variant, using this code

Code:
var EncodingMode = "String";
var ErrorCorrectionMode = "L";
var PreferredFormat = "0";
var PointSize = "4";
var NoFontTag = false;
var Font = "IDAutomation2D";
var ProcessTilde = false;



var FieldOrRuleToEncode =

    "BEGIN:VCARD\n"+
    "VERSION:3.0\n"+
    "N:"  +Field("Achternaam") + ";" + Field("Voornaam")  + "\n"+
    "ADR;TYPE=WORK:"+ ";;" + Rule("getStraat") + ";" + Rule("getStraatPostcode") + ";;"
                            + Rule("getStraatPlaats") + ";" + Rule("getStraatLand")+"\n"+
    "ADR;TYPE=OTHER:"+ ";;" + Rule("getPostbus") + ";" + Rule("getPostbusPostcode") + ";;"
                            + Rule("getPostbusPlaats") + ";" + Rule("getPostbusLand")+"\n"+
    "TEL;TYPE=cell:"+ Field("Mobiel")+"\n"+
    "TEL;TYPE=work:"+ Field("tel. Werk")+"\n"+
    "TEL;TYPE=fax:"+ Field("Fax werk")+"\n"+
    "EMAIL;TYPE=WORK:"+ Field("E-mail")+"\n"+
    "URL:"+ Field("URL")+"\n"+
    "ORG:" + Rule("getBusiness")+"\n"+
    "TITLE:"+ Field("Functie")+"\n"+
    "END:VCARD";



//return FieldOrRuleToEncode;
var DataToEncode = FieldOrRuleToEncode;
return MakeQRBarcode(DataToEncode, ProcessTilde,
          EncodingMode, ErrorCorrectionMode, PreferredFormat,
          PointSize, NoFontTag, Font);
There is a drop-down menu so the customer can pick his address which is filled out automatically. That's why there are "+rule" in this code.

Offline this works great. But when I create a template, upload it to DSF and generate a business card in DSF, I can't read the QR-code anymore.

Maybe this is related to the character-set?
Reply With Quote
 

Tags
dsf, qr-code, unicode

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 11:05 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
(c) 2011, PTI Marketing Technologies™, Inc.