SayBarCode control

wartiaga
Posts: 83
Joined: Wed May 25, 2016 1:04 am

Re: SayBarCode control

Post by wartiaga »

nageswaragunupudi wrote:Please try

Code: Select all

#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

Image
Hi Mr. Nages, Fivewin provide a qrcode generation to use in fastreport? Jpg or bmp. Thank you!
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: SayBarCode control

Post by nageswaragunupudi »

Code: Select all

#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
wartiaga
Posts: 83
Joined: Wed May 25, 2016 1:04 am

Re: SayBarCode control

Post by wartiaga »

nageswaragunupudi wrote:

Code: Select all

#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?
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: SayBarCode control

Post by nageswaragunupudi »

FWH 1902
Regards

G. N. Rao.
Hyderabad, India
wartiaga
Posts: 83
Joined: Wed May 25, 2016 1:04 am

Re: SayBarCode control

Post by wartiaga »

nageswaragunupudi wrote:FWH 1902
Thank you Mr. Nages.
Post Reply