Always overwrite exported file

Discussion in 'Tally Developer' started by torsky, Feb 22, 2025.

  1. torsky

    torsky New Member


    I have added the following code to always overwrite the exported file and not ask user to Yes/No Overwrite?

    [​IMG]

    Code:
    [#Variable: SVOverwriteImpVch]
      
        Type        : Logical
        Persistent    : Yes
        Default: Yes
    
    
    [Function : exporterConsolidated]
    
    100:Export Report:.:true
    101:Set:SVOverwriteImpVch:Yes
    However, the Overwrite Form is still asking for the the user's confirmation. Can any member help how to Set it always yes so it overwrites automatically to Yes?

    Regards
     


  2. HVPatel

    HVPatel Active Member


    Hi,
    you have to write a function to delete prev. file

    Delete File : ##SVExportLocation + "\filename.pdf"

    remain try yourself
    Thanks
     


  3. vishnu joshi

    vishnu joshi Member


    ;Try This,,

    [Function : exporterConsolidated]
    100:Export Report:.:true:ture
     


Share This Page