Steps To Run Sample TDLs
- Post-installation of TallyPrime Developer, execute TallyPrime Developer from desktop or from the installation folder.
- Open the Sample project by traversing through Help -> TDL Samples.
- For ODBC and XML Data Source samples, copy the Excel File Samples\Supporting Files\Sample Data.xls, Folders Samples\Supporting Files\XMLData and Samples\Supporting Files\FileIOData to the local TallyPrime folder, for example, C:\TallyPrime.
- For DLL samples, from the Folder Samples\Supporting Files
- Copy the files CompoundInterest.Dll and MathLib.DLL to the local Tally folder.
- Install the files Sample1Installer.msi, Sample2Installer.msi, and Sample3Installer.msi and also ensure that .NET Framework 3.5 is installed on your system.
- For License Binding samples,
- Copy the folder Samples\Supporting Files\Licensing Binding Mechanism to the local Tally folder, for example, C:\TallyPrime.
- Copy the DLL File from the path Samples\Supporting Files\Licensing Binding Mechanism\Approach 4\CallDLLEncDec.dll to the local Tally folder, for example, C:\TallyPrime.
- For XML samples,
- Ensure that Internet Information Server (IIS) or any other Web Server is installed.
- Also, ensure that PHP Hypertext Preprocessor (PHP) is installed. The Web Server needs to be configured for PHP.
- Copy files TestXML.XML, XMLData.XML, CXMLResponse.PHP, CXMLResponse as per Tally.PHP in the path Samples\Supporting Files to the local folder. C:\InetPub\WWWRoot in case the Web Server running in IIS.
- If sample data is not copied yet to TallyPrime then copy the sample data folders 00009, 00010, and 00011 into the relevant data path of TallyPrime after ensuring that the actual data folders with the same number do not exist.
- For What’s New in Rel 3.0 Samples,
- For Function – RemoteUserID Sample,
- Tally NET Login ID must be entered in the relevant TDL Code.
- The same is also provided for remote access under the Security Control in TallyPrime.
- For Image Printing and Resource Definition Samples, copy the folder Images from the folder Samples\Supporting Files to the local Tally folder, for example., C:\TallyPrime.
- Copy the folder XMLData from the folder Samples\Supporting Files to the local Tally folder, for example, C:\TallyPrime.
- For the Import Events sample, we need to use the file XMLData\Receipt.XML which imports all Receipt Vouchers as Payment.
- For Function – RemoteUserID Sample,
- For What’s New in Rel 3.6 Samples viz., Action Execute TDL, copy the file Definitions to be Executed.tdl from the folder Samples\Supporting Files to the Local Tally Folder, for example, C:\TallyPrime.
- For What’s New in Rel 3.61 Samples, copy the files TextSource.txt and SmpBrowseURLEx.Bat from Samples\Supporting Files to the local Tally folder, for example, C:\TallyPrime.
- Now associate the TCP or Text File to Tally.ini file to see the effect of the sample codes in TallyPrime.
- Execute TallyPrime and select the group company 00011 i.e., ABCDEF Group which in turn loads both its member companies ABC Company Ltd and DEF Corporation (User Name a, Password a) and check the new Menu Item within added to the Gateway of Tally : TDL – Development Language.
- Use ABC Company Ltd for all other samples except Loop Collection.
- For Loop Collection, Group Company ABCDEF Group needs to be active for executing Group Company Stock Summary. For the Cost Centre wise Voucher, ABC Company Ltd needs to be active. More than one company must be active for Multi-Company Day Book and Multi-Company Outstandings Report.
NOTE: All TDL Samples contain relevant Header information explaining the purpose, syntax (wherever necessary) of the code and dependency/specifications, if any for executing the code successfully.
- To serve the ODBC Clients in a cross bitness environment, i.e., 32 bit Tally to serve a 64-bit application or a 64 bit Tally to serve a 32-bit Application, we need to execute the appropriate regODBC file available in the Tally application folder as shown in the following table:
|64||32||Tallywin.dat (32)||64 bit Tally ODBC Driver by executing
|32||64||Tallywin64.dat (64)||32 bit Tally ODBC Driver by executing
- Since TallyPrime Release 4.5 comes with native 64-bit support, we need to ensure the following while working with DLL Samples:
- DLLs compiled for any CPU will work with 64-bit native TallyPrime by registering the DLL using regasm.exe.
- DLLs compiled for 32-bit cannot load in 64-bit native TallyPrime. So, DLL has to be recompiled for 64-bit.
- A new description ‘COM Interface’ has been introduced in TDL from Tally.ERP9 Release 4.6 onwards. In What’s New in Rel 4.6 Samples viz., COM Interface TDL, to use the external functions of the DLL MathLib.DLL, first register the DLL in the Visual Studio Command Prompt as:
regasm /codebase “<DLL file name with the absolute path>”
Please note that command line parameter ‘/codebase’ is to be used only for registering .NET COM Servers.
- To execute DevMode Samples, Profiler, Expression Diagnostics and Key Recording; Tally.ERP9 must be executed with Command Line Parameter ‘/DevMode’.
- To execute Exec Excel Macro Samples, copy the Excel file Samples\Supporting Files\Tally.xlsm to local Tally Folder.