Last time, I have written about how to set tdl in tally, today we will go ahead with our first tally program in tdl.
There is lot of free tally tdl is available. you may also download one free tdl for logo printing from the support forum and can use the same.
Now today we will discuss the basic of tdl and will write our first TDL programe.
Believe me, it is very very easy to write your first tdl and it does not require any special knowledge or experience!
First of all, you need to memories following :
First
Report uses Form
Form uses Parts
Part uses lines
Line uses Fields
Field is the real-container where text is displayed.
You Don’t need to understand it! This is an universal rule for Tally TDL
Now, Let’s prepare our first TDL programme.
Open your notepad from the windows
and Write below codes. I would prefer you to write yourself without being copy paste. it will give you practice and in TDL self practice is the most important thing one need to learn Tally Developer Languages.
;; start of code
[#menu:gateway of tally]
Item:myfirst tdl:Display:My Report
[Report:My Report]
form: myform
[form:myform]
Part:my Part
[Part:my part]
line:my Line
[line:my Line]
Field:First field
[Field:First field]
set as : “Let’s Start learning tally”
;; end of code
Now save this file with a name suppose myfirsttdl.txt in notepad and then copy paste the same in your tally folder
Now start your tally software and follow the guidelines how to activate tdl in tally.
You don’t need to have a licensed software of either tally nor tally developer
It will work in any software and you can learn tally TDL very easy just by following such simple programming codes and a self practice.
set as : “Let’s Start learning tally”
now follow the articles on how to set tdl in tally and activate your first tdl.
Now, start your tally and you will find screen shots as per below.
you will find an extra menu in your default menu with the name my first tdl
‘
hit the same and you will find your first tdl program
IF you like your first tdl, then do share your feedback is it hard for you to write or learn tdl ?
If you have any query or need any guidance then please post it on support forum only

I like it very much it works. Can you suggust more to develop tdl.
I am using Barcode printing tdl in my tally . but the problem is that the printing of barcode is in vertical line. i want to use this in horizontal line & want to change the content of Tdl.Kindly send more details of the below to change the tdl in own style. I want to change the barcode style also.
Here is the tdl.
;; Sri Ganeshji : Sri Balaji : Sri Pitreshwarji : Sri Durgaji : Sri Venkateshwara
[#Form : Sales Color]
Add : Print : EI LabelPrinting
;; Adding Label Printing Report to the already existing Report/s.
[Report : EI LabelPrinting]
Form : EI LabelPrinting
Object : Voucher
[Form : EI LabelPrinting]
Part : EI LabelPrinting
[Part : EI LabelPrinting]
Line : EI LabelPrinting
Repeat : EI LabelPrinting : Inventory Entries
Scroll : Vertical
[Line : EI LabelPrinting]
Field : EI StkItem Label
Explode : EI MoreLabels : $$Number:$BilledQty > 2
Space Bottom : 1
;; Explode part starts
[Part : EI MoreLabels]
Line : EI MoreLabels
[Line : EI MoreLabels]
Field : EI STkItem Label
Explode : EIMoreLabels : $$Number:$BilledQty >($$ExplodeLevel+$$Line)
Space bottom : 1
;; Explode part ends
[Field : EI StkItem Label]
Use : Name Field
Set As : If $$IsEmpty:($StkAlias:StockItem:$StockItemName) then “(“+$StockItemName”)” +
else “(“+($StkAlias:StockItem:$StockItemName)+”)”
Style : Bar Code
[Style: Bar Code]
Font : IDAutomationHC39S
Height : 10
;; Font used to print the alphanumeric/numeric values as Barcode
[#Object : StockItem]
StkAlias : $$Alias
;; End-of-File
Dear Mukesh,
Welcome to Free Learning tall 9 and accounting.
I am happy that you like the article.Surely I will write more about TDL and more example. Because it is the example and real program which help to learn tally and the TDL.
About the tdl code you have published here, I will look into the matter at the earliest and we will discuss this matter and further coding on support fourm
Hello sir,
how shall i Al
ter the ledger in voucher screen without escape from the voucher screen.
sir, we are a manufacturing company and we are providing fabrics for more than 600 customers each customer has a different types of rate for the same product, is there any option to maintain the rate master for teach customers
Yes , You Can maintain it in Tally by using price level
Dear Mahendra ji,
we are seeking more posts regarding TDL language. the first tdl works well
Thanks a lot
Ram
Ram,
Surely, You will see more post about TDL actually right now it is hard for me to manage my time schedule.
hi everybody
can any one help me in my report, i want to print my cash book which should show Cash bank and one extra total (Cash+Bank) column in my cash book
Debojit,
No one can help for for that as it’s a chargeable service. if you wish to buy a tdl, then please contact us and I will be pleased to quote for the same
Sir i would like to have Percentage fields in pricelist so that it could automatically calculate rate according to percentage given by taking MRP value and VAT from the stock item which we are entering at the time of creation of stock
e.g : Name: Bleach MRP: 120/- VAT : 14.5%
so if we enter 20 in percentage field the rate in pricelist should display 83.84
i.e 120/- * 20% = 96/- the 96/- divide by 1.145 = 83.84
Johar,
This is a chargeable service.
Please fill out the contact us page on our site
Sir i would like to have Percentage fields in pricelist so that it could automatically calculate rate according to percentage given by taking MRP value and VAT from the stock item which we are entering at the time of creation of stock
e.g : Name: Bleach MRP: 120/- VAT : 14.5%
so if we enter 20 in percentage field the rate in pricelist should display 83.84
i.e 120/- * 20% = 96/- the 96/- divide by 1.145 = 83.84
Sir please write a program for including pictures in an invoice and to customise the height and width of an invoice.Thank you.
Dear Sir,
I want customised Tally for Fee Collection and School Management System. How to solve this.
hello, i like your style and process in reporting the message. pls provide me coding for school by Rafi
Dear Sir,
I want to add sales voucher class with ledger.
pls help me.
Sudhir,
Your requirements is so strange that, I am really unable to understand it. never hear anything such so far!
Mahendra i like your articles. so helpful to all new developers. Buddy i am also a beginner if you can help me. I have created two Sales voucher types 1)Sales A and 2)Sales B when i print Sales A the title should be Invoice but when i print Sales B i want Inv-Del to be printed can you please help me how to go about it. It would be better if you can give me sode code which i can use it solve my problem.
Refering to my Querry 22.10.2011 at 9.52 P.m, our Tally Serial Number is : 7xxxxxx. Request you to guide for making appropriate correction in the above TDL Codes.
In Tally possible for Auto Batch Numbering if it is possible then how give me details
Sir,
I need a top margin while printing the POS Invoice, how can i do that, please help
Dear sir,
i have made two tdl , one is for export contact address from ledgers and other is for voucher no in bank reco mode as i have use this option for cheque no and that voucher no not apperaed in the bank reco mode hence i have made that. I have all these are learned automatically by seening the tdl of sweta computers.
i want that you have given one tdl for running balance but it is with some error, i have that cleared. pls let me know how can i add my openning balance with running balance And i want to now formula for +-/*intdll
hello sir
Good Day
I like your posters and happy. I want to create and view TDL file with UDF. Can u pls help me
Sir,
I am tally user can you send me the .tdl file for creating a monthly sales of the same stock and printing it in a sales format thanks
Dear sir Mahendra,
I am using Tally 9 ver2.14, for printing Invoices.
The option of “Stop printing vertical lines/borders” doesn’t seem to work. I have a dot matrix printer and I need this option to be set to YES. However the final print has vertical lines in it. Is there a correction patch to this bug?
Please help. (I prefer the neat mode, as the dot matrix mode does not have the desired appearance of Invoice)
Thank you very much
Dear Sir, I m from Bangladesh.
A problem in tally 9 i face. There is no opening balance in group summary for Income or Expense group, But it is ok for Asset or Liabilities group. How to solve it sir. Another thing, may I have a tdl for displaying and printing opening balance in Cash Flow.
Eco,
I am not getting you! In accountancy Income/Expenses can’t have closing balance and so they can’t have opening balances too!
Sir,
I am tally user can you send me the .tdl file for ledger view on trans screen
Sir, I am regular tally user. I want to print tally invoice in A4 Sheet and I want acknowledgement part from retailor or debtor part having acknowledged stocks and promise to pay the
same amount as per the above invoice with seal and signature. that acknowledgment part may be 8 inches * 2 inches in A4 sheet. in which party name invoice number and date and amount of invoice to be printed. this tdl have to work on dot matrix and laser printer also. kindly advice how to make tdl regards. S.Ramachandran
Hello Ramchandran,
We highly value all our readers and I am glad for being you our regular reader.
Regarding, your requirement, it is not that easy to explain as it needs complex coding, a lot of codes to be prepared,modified etc. I would advice to your hire a professional and he will do it for sure.
Otherwise, you need to study whole TDL language
Dear Sir,
i made on sales invoice
the amount & amount in words coming in INDIAN RUPEES only
when i make sales invoice in foren currency it is not coming in foren curreny
pls tell me source code
how to learn tdl language by first student who known about tally but no known about tdl.
your faithfully
rahul potter
aacountant (HOD)
Sir,
I wud like to learn TDL. Please let me know the ways. I completed TDL course by Tally. But I could not follow it.
Regards,
K.Suresh
Dear Sir,
I want to insert one more column of Dis.Amt. before the amount column in sales voucher.
And get the net amount after deduction of dis in % and dis amt.
so plz tell me how can i do??
Thanks
Hi sir,
I want to know how to configure tdl in tally 9 gold for data import using notepad format whereas the same is available in ERP9 in the configuration settings please help me how to do tdl config in tally 9 gold
Hello Sir,
Thanks for your article it is very interesting,sir am the tally user and my base currency is Tsh. and my other multi- currency is US$,can you help me to get a tdl code that will show me both my figure in my invoice print out?base on my exchange rate?
example to have the colum that will show:
Vatable Amount (Tshs) xxxxx
Non Vatable Amount (Tshs.) xxxxx
Vat Amount (Tshs) xxxxxx
Total Amount (Tshs.) xxxxxx
Hello Sir,
I developed one module in TDL i want to integrate that into balance sheet in tally ERP.9. please help me in this problem. how to Connect my module to tally balance sheet.
Dear Sir How to Open tdl file pl
Dear all please help me to get values from payment voucher of purchase details like Purchase voucher number, purchase voucher date
Dear Sir,
pls tell me the code for Tally Logo