Quantcast
Channel: Net Express / Server Express - Forum - Recent Threads
Viewing all articles
Browse latest Browse all 375

using .NET SDK in NetExpress 5.1

$
0
0

Hi,

we want to provide our bills with the GiroCode-QR-Code. For generating the QR-Code we might use the function "Girocode.dll" in the .Net SDK.

Please see below for an example how to use this:

FormatName[] imageFormats = new FormatName[] { FormatName.BMP,

        FormatName.PNG, };

 

    foreach (FormatName fn in imageFormats)

    {

 

        string bic = "SOLADES1PFD";

        string name = "GiroSolution AG";

        string iban = "DE23690516200012345600";

        Decimal amountBD = 15.00m;

        String purpose = "Zahlen mit Code";

 

        GiroCode.GiroCode giroCode = new GiroCode.GiroCode

        {

            BIC = bic,

            Name = name,

            IBAN = iban,

            Amount = amountBD,

            Purpose = purpose               

        };

 

        GiroCodeEncoder encoder = new GiroCodeEncoder();

 

        byte[] ba = encoder.encode(giroCode, null, null, fn, 250, 250, null, null);

 

        string fileType = fn.ToString();

        string filePath = "C:/temp/girocode." + fileType;

        File.WriteAllBytes(filePath, ba);

 

    }

Can any one convert this to Net Express Cobol code.

Thanks,

Silke


Viewing all articles
Browse latest Browse all 375

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>