TallyPrime ready · One-time price
0
UncategorisedE2T.inPHP
Uncategorised2 Jul 20261 min read

PHP

LW
LearnWell teamE2T.in · Tally & TDL developers
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!

‘; } ?>

Need this done for your business?

Our software imports Excel into TallyPrime in one click. Ask us for a free demo.

WhatsApp +91 91318 10293