QR Code in Simple Format Invoice

Discussion in 'Tally Developer' started by Hasan@123, Jun 25, 2020.

    
  1. Hasan@123

    Hasan@123 Member


    Dear Developers,
    How Can i print QR Code in my simple format invoice? I have attached an image where i want to print my QR code. Please check my code its not working.

    [!Part: HasQR1]
    Horizontal Alignment:Right
    Vertical:No
    Lines : HasLOGO1
    Graph Type : "F:\SS\User Data\Tally\Desktop\SS_QR Code.jpg"
    Invisible : If $$InPrintMode OR ($$InExportMode And $$IsSysNameEqual:HTML:##SVExportFormat) then No Else Yes
    [Line: HasLOGO1]
    Field : HasLOGO1
    [Field: HasLOGO1]
    Set as : ""
    [Part:Hascust1]
    Line:Hascust1
    [Line:Hascust1]
    Field:Hascust1
    [Field:Hascust1]
    Set as:""
    Full Width:Yes
    Alignment:Right


    [*Form: Simple Printed Invoice]
    Parts : STDInvoiceTop,
    BottomParts : EXPINV CustomerSign ,HascustSign1,HasQR2
    Width : @@InvWidth Inch
    Height : @@InvHeight Inch
    Space Top : @@InvSpace inch
    Space Right : 0.5 inch
    Space Left : @@InvSpaceLeft inch
    Space Bottom: 0.25 inch
    Page Break : EXPINV ClPageBreak, EXPINV OpPageBreak
    Option : Invoice Bank Info Fetch : ##SABankInfo AND NOT $$IsSysName:##SABankName
    Set Always : SVViewName : $$SysName:InvVchView
    [Part:HasQR2]
    Border:ll
    Vertical:No
    Horizontal Alignment:Right
    Right Part:HasQR1
    [Part:HascustSign1]
    Border:ll
    Line:HascustSign1
    [Border:ll]
    Left : Thin, Full Length
    Right : Thin,Full Length
    [Line:HascustSign1]
    Space Bottom: 2 mms
    Field:HascustSign1
    Right Field:HascustSign2
    [Field:HascustSign1]
    Full Width:Yes
    Set as:"Scan QR code For Payment"
    [Field:HascustSign2]
    Alignment:Right
    Set as:If NOT ($$IsSysNameEqual:primary:##SVAddressToPrint OR $$IsEmpty:##SVAddressToPrint) Then $$Sprintf:mad:@CompanyMailFormat:mad:@InvoiceCmpNameAddrType Else $$Sprintf:mad:@CompanyMailFormat:mad:@InvoiceCmpName
     

    Attached Files:



  2. humblefriend

    humblefriend New Member


    [!Part: LearnWellQR1]
    Horizontal Alignment:Right
    Vertical:No
    Lines : LearnWell LOGO1
    Graph Type : "C:\Users\HP\Desktop\qr\QRLOGO.jpg"
    Invisible : If $$InPrintMode OR ($$InExportMode And $$IsSysNameEqual:HTML:##SVExportFormat) then No Else Yes
    [Line: LearnWell LOGO1]
    Field : LearnWell LOGO1
    [Field: LearnWell LOGO1]
    Set as : ""
    [Part:LWcust1]
    Line:LWcust1
    [Line:LWcust1]
    Field:LWcust1
    [Field:LWcust1]
    Set as:""
    Full Width:Yes
    Alignment:Right
    ;;WWW.LEARNWELLS.COM
    [*Form: Comprehensive Invoice]
    Parts : STDInvoiceTop, EXPINV OpPageBreak, EXPINV Details
    BottomParts : EXPINV Totals , EXPINV SignOff ,LWcustSign1,LearnWellQR2, EXPINV Jurisdiction, EXPINV InvoiceCompGen
    Width : @@InvWidth Inch
    Height : @@InvHeight Inch
    Space Top : @@InvSpace inch
    Space Right : 0.5 inch
    Space Left : @@InvSpaceLeft inch
    Space Bottom: 0.25 inch
    Page Break : EXPINV ClPageBreak, EXPINV OpPageBreak
    Option : Invoice Bank Info Fetch : ##SABankInfo AND NOT $$IsSysName:##SABankName
    Set Always : SVViewName : $$SysName:InvVchView
    [Part:LearnWellQR2]
    Border:ll
    Vertical:No
    Horizontal Alignment:Right
    Right Part:LearnWellQR1
    [Part:LWcustSign1]
    Border:ll
    Line:LWcustSign1
    [Border:ll]
    Left : Thin, Full Length
    Right : Thin,Full Length
    [Line:LWcustSign1]
    Space Bottom: 2 mms
    Field:LWcustSign1
    Right Field:LWcustSign2
    [Field:LWcustSign1]
    Full Width:Yes
    Set as:"Scan QR code For Payment"
    [Field:LWcustSign2]
    Alignment:Right
    Set as:If NOT ($$IsSysNameEqual:primary:##SVAddressToPrint OR $$IsEmpty:##SVAddressToPrint) Then $$Sprintf:mad:@CompanyMailFormat:mad:@InvoiceCmpNameAddrType Else $$Sprintf:mad:@CompanyMailFormat:mad:@InvoiceCmpName
    ;;...www.Learnwells.com...;;
    [!Part: LearnWellQR1]
    Horizontal Alignment:Right
    Vertical:No
    Lines : LearnWell LOGO1
    Graph Type : "C:\Users\HP\Desktop\qr\QRLOGO.jpg"
    Invisible : If $$InPrintMode OR ($$InExportMode And $$IsSysNameEqual:HTML:##SVExportFormat) then No Else Yes
    [Line: LearnWell LOGO1]
    Field : LearnWell LOGO1
    [Field: LearnWell LOGO1]
    Set as : ""
    [Part:LWcust1]
    Line:LWcust1
    [Line:LWcust1]
    Field:LWcust1
    [Field:LWcust1]
    Set as:""
    Full Width:Yes
    Alignment:Right
    ;;WWW.LEARNWELLS.COM
    [*Form: Comprehensive Invoice]
    Parts : STDInvoiceTop, EXPINV OpPageBreak, EXPINV Details
    BottomParts : EXPINV Totals , EXPINV SignOff ,LWcustSign1,LearnWellQR2, EXPINV Jurisdiction, EXPINV InvoiceCompGen
    Width : @@InvWidth Inch
    Height : @@InvHeight Inch
    Space Top : @@InvSpace inch
    Space Right : 0.5 inch
    Space Left : @@InvSpaceLeft inch
    Space Bottom: 0.25 inch
    Page Break : EXPINV ClPageBreak, EXPINV OpPageBreak
    Option : Invoice Bank Info Fetch : ##SABankInfo AND NOT $$IsSysName:##SABankName
    Set Always : SVViewName : $$SysName:InvVchView
    [Part:LearnWellQR2]
    Border:ll
    Vertical:No
    Horizontal Alignment:Right
    Right Part:LearnWellQR1
    [Part:LWcustSign1]
    Border:ll
    Line:LWcustSign1
    [Border:ll]
    Left : Thin, Full Length
    Right : Thin,Full Length
    [Line:LWcustSign1]
    Space Bottom: 2 mms
    Field:LWcustSign1
    Right Field:LWcustSign2
    [Field:LWcustSign1]
    Full Width:Yes
    Set as:"Scan QR code For Payment"
    [Field:LWcustSign2]
    Alignment:Right
    Set as:If NOT ($$IsSysNameEqual:primary:##SVAddressToPrint OR $$IsEmpty:##SVAddressToPrint) Then $$Sprintf:mad:@CompanyMailFormat:mad:@InvoiceCmpNameAddrType Else $$Sprintf:mad:@CompanyMailFormat:mad:@InvoiceCmpName
    ;;...www.Learnwells.com...;;
     


  3. Himanshu-2002

    Himanshu-2002 Active Member


    Change Your QR Code Dimensions
    Example -- 6 * 2 ( Height * Width ) Try to use Inch

    Set That Dimensions At Part Level... Remember to use Same Dimensions...Hope It Helps
     
    humblefriend likes this.


  4. humblefriend

    humblefriend New Member


    Thanks Himanshu Ji, can you share your TDL which I can use in tally, my TDL is overlapping in signature, I want to shift it in left side but unable to do it, if you have tdl please share on humblefriend@ymail.com
     


Share This Page