SayBarCode control

Re: SayBarCode control

Postby wartiaga » Tue Oct 08, 2019 10:58 pm

nageswaragunupudi wrote:Please try
Code: Select all  Expand view  RUN
#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!
wartiaga
 
Posts: 212
Joined: Wed May 25, 2016 1:04 am

Re: SayBarCode control

Postby nageswaragunupudi » Wed Oct 09, 2019 2:49 am

Code: Select all  Expand view  RUN
#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
User avatar
nageswaragunupudi
 
Posts: 10660
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: SayBarCode control

Postby wartiaga » Fri Oct 11, 2019 1:36 am

nageswaragunupudi wrote:
Code: Select all  Expand view  RUN
#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?
wartiaga
 
Posts: 212
Joined: Wed May 25, 2016 1:04 am

Re: SayBarCode control

Postby nageswaragunupudi » Fri Oct 11, 2019 1:55 am

FWH 1902
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10660
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: SayBarCode control

Postby wartiaga » Fri Oct 11, 2019 1:45 pm

nageswaragunupudi wrote:FWH 1902


Thank you Mr. Nages.
wartiaga
 
Posts: 212
Joined: Wed May 25, 2016 1:04 am

Previous

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 35 guests