Click here to Skip to main content
15,886,026 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I am trying to get the all company list from tally through tally API. For that I am using the Tally.dll assembly but once I invoke the GetListOfCompanies() (defined in the Main class of the tally.dll) it's giving me an error message "Could not find Report 'List of Companies'!'"




I am using the source code from
Sample Code[^]

What I have tried:

Please let me know if is there any other approach to get the same or why I am getting the error message?


<pre>  
TallyDll.Main tl = new TallyDll.Main();
DataTable dt= tl.GetListOfCompanies();
Posted
Updated 22-Nov-21 2:07am
Comments
Richard MacCutchan 14-Nov-21 3:08am    
You should ask the owners of the library.

1 solution

Take a look here: Getting List of Companies[^]
This method uses XML request for getting the list of online companies is sent to the URL.

In other words, you can't get a list of companies via *.dll. You have to use XML HttpRequest[^].
Here is static method, which returns XML response: c# - Emulate XmlHttpRequest with a .NET WebClient - Stack Overflow[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900