PHP

PHP

Import Data into Tally

Import Data into Tally


getActiveSheet(); // Get the highest row number and column letter $highestRow = $worksheet->getHighestDataRow(); $highestColumn = $worksheet->getHighestDataColumn(); // Convert the column letter to a number $highestColumnIndex = PHPExcel_Cell::columnIndexFromString($highestColumn); // Initialize the XML data $xml_data = ‘
1 Import Data All Masters
##SVCOMPANYCONNECTNAME ‘; // Loop through the rows and generate the XML data for ($row = 2; $row <= $highestRow; $row++) { $ledgerName = $worksheet->getCellByColumnAndRow(0, $row)->getValue(); $groupName = $worksheet->getCellByColumnAndRow(1, $row)->getValue(); $xml_data .= ‘ ‘.$ledgerName.’ ‘.$groupName.’ ‘; } // Close the XML data $xml_data .= ‘
‘; // Generate the XML file and save it $xml_file = ‘import_data.xml’; file_put_contents($xml_file, $xml_data); // Display success message echo ‘

Data imported successfully!

‘; } ?>
  • All Posts
  • AI
  • Business Ideas
  • Excel to Tally-ODBC
  • Excel to Tally-XML
  • Excel VBA
  • Free TDL
  • General
  • Google Sheet
  • Learn TDL
  • Online Tools
  • Paid Online Tools
  • Software
  • Tally Tutorial
  • Tech News
  • Uncategorised
    •   Back
    • PDF TO TALLY BANK IMPORT
    • Ecommerce Reconciliation Online
    • Animation Tool Online
Load More

End of Content.

Share Post

Post Category

Join the family!

Sign up for a Newsletter.

You have been successfully Subscribed! Ops! Something went wrong, please try again.

E2T .in

Futuristic tools for accounting professionals, animation creators, and Tally developers. Empowering professionals with cutting-edge technology.

Contact Us

Panchsheel Nagar East, BMY Charoda, Bhilai, Chhattisgarh

+91 -9131810293
learnwell.e2t@gmail.com

© 2026 Learnwells.com. All rights reserved.