QR Code

QR Code

Postby acwoo1 » Tue Mar 26, 2013 1:55 pm

Hi

Code: Select all  Expand view
#include "fivewin.ch"

function main()

   local oWnd

   define window oWnd
   
   activate window oWnd;
            on paint( BarCode( hDC ) )
   
return nil

function BarCode( hDC )
   
   local hZebra
   local cCode := "testing from fivewin"
   local hBrush := CreateSolidBrush( 0 )

   hZebra := hb_zebra_create_pdf417( cCode, NIL )

   hb_zebra_draw( hZebra, {| x, y, w, h | FillRect( hDC, { y, x, y +  h, x + w }, hBrush ) }, 5, 5, 1, 4 )
   
   deleteobject( hBrush )
   hb_zebra_destroy( hZebra )
   
return nil
 


When tested cCode with:
http://www.lenovocareers.com/CorporateInformation.aspx

The QR Code displayed read as : 15067494.

How to make it to read http://www.lenovocareers.com/CorporateInformation.aspx

Regards
ACWoo
FWH1320+bcc582+harbour
acwoo1
 
Posts: 161
Joined: Tue Nov 10, 2009 10:56 am

Re: QR Code

Postby acwoo1 » Thu Mar 28, 2013 1:36 pm

Hi

Sample code or any hint to move in the right direction will be appreaciated.

Thanks

ACWoo
FWH1302+bcc582+harbour
acwoo1
 
Posts: 161
Joined: Tue Nov 10, 2009 10:56 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 100 guests