FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour SayBarCode control
Posts: 253
Joined: Wed May 25, 2016 01:04 AM
Re: SayBarCode control
Posted: Tue Oct 08, 2019 10:58 PM
nageswaragunupudi wrote:Please try
Code (fw): Select all Collapse
#include "fivewin.ch"

REQUEST FWZEBRA

function Main()

   local oPrn

   PRINT oPrn PREVIEW
   PAGE
      @ 2,2 PRINT TO oPrn TEXT "Mr. Vilian is a great friend" + CRLF + ;
                               "and a great expert in software" ;
            AS BARCODE TYPE "QRCODE" SIZE 1.5,1.5 INCHES
   ENDPAGE
   ENDPRINT

return nil


Copy the code to fwh\samples folder and build with buildh.bat



Hi Mr. Nages, Fivewin provide a qrcode generation to use in fastreport? Jpg or bmp. Thank you!
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: SayBarCode control
Posted: Wed Oct 09, 2019 02:49 AM
Code (fw): Select all Collapse
#include "fivewin.ch"

REQUEST FWZEBRA  // Important

function Main()

   local hBmp
   
   hBmp := FW_BarCodeBmp( "Your text", "QRCODE", 200, 200 )
   FW_SaveImage( hBmp, "name.bmp" )

return nil


You can specify the file name as "name.bmp" or "name.jpg" or "name.png" and it will be saved in bmp or jpg or png format depending on the extension used.

For best results, use bmp format.
Regards



G. N. Rao.

Hyderabad, India
Posts: 253
Joined: Wed May 25, 2016 01:04 AM
Re: SayBarCode control
Posted: Fri Oct 11, 2019 01:36 AM
nageswaragunupudi wrote:
Code (fw): Select all Collapse
#include "fivewin.ch"

REQUEST FWZEBRA  // Important

function Main()

   local hBmp
   
   hBmp := FW_BarCodeBmp( "Your text", "QRCODE", 200, 200 )
   FW_SaveImage( hBmp, "name.bmp" )

return nil


You can specify the file name as "name.bmp" or "name.jpg" or "name.png" and it will be saved in bmp or jpg or png format depending on the extension used.

For best results, use bmp format.


Thank you Mr. Nage. Which fivewin version provides this feature?
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: SayBarCode control
Posted: Fri Oct 11, 2019 01:55 AM

FWH 1902

Regards



G. N. Rao.

Hyderabad, India
Posts: 253
Joined: Wed May 25, 2016 01:04 AM
Re: SayBarCode control
Posted: Fri Oct 11, 2019 01:45 PM
nageswaragunupudi wrote:FWH 1902


Thank you Mr. Nages.

Continue the discussion