Accounting-Companion / TallyConnector

You can use Tally Connector to Connect your desktop/Mobile Applications with Tally seamlessly.
47 stars 29 forks source link

VB.Net option #7

Open sanketgroup opened 3 years ago

sanketgroup commented 3 years ago

What is the best option to use this in VB.Net instead of C#.

Is it okay to build DLL in C# and then use that TallyConnector.dll into VB.Net project? Would be there any issues with some syntaxes and functions ?

saivineeth100 commented 3 years ago

You can freely use this dll in Vb.net project as both use either .netcore or .netframework

As this library is written in c# you need to build it in c#

My suggestion is to instead of building and referencing dll you can directly reference project so whenever you build your project this library is build along with it So you will get latest API available in library provided you sync project with GitHub

sanketgroup commented 3 years ago

Can you please help with the following error? I converted to c# code to VB.Net

image

saivineeth100 commented 3 years ago

@sanketgroup How can I what is error? Either Screenshot Errors list or copy paste error shown in error list or hover over red underline statement to get error details

I seen several other mistakes wait let me create example app

sanketgroup commented 3 years ago

https://user-images.githubusercontent.com/6008084/123762038-039fa480-d8e0-11eb-9e86-f6daddc3e583.mp4

saivineeth100 commented 3 years ago

Copy pasting whole c# code is wrong You write code according to VB as different languages use different syntax

Added VB example check now

and while adding reference don't select dll as you already added project to solution you can directly add project reference Right click project => add reference => In projects menu select project image

sanketgroup commented 3 years ago

It would be great if you can share the VB.Net project. I did not copy-pasted from C#, just to shorten the video I copy pasted from Notepad.

saivineeth100 commented 3 years ago

Example project is in examples folder

I did not copy-pasted from C#, just to shorten the video I copy pasted from Notepad.

Any way you are using code in c# Ex: Imports System.windows.forms is not required here and , Partial class Form also related c#

See example project you will known difference

sanketgroup commented 3 years ago

While Opening WinForms_VB.sln, getting the following error.

Project '......\TallyConnector-NETFramework\TallyConnector\TallyConnector.csproj' targets 'net5.0'. It cannot be referenced by a project that targets '.NETFramework,Version=v4.7.1'. WinForms_VB

saivineeth100 commented 3 years ago

You referenced wrong project .net5 project Add reference to .netframework project

sanketgroup commented 3 years ago

Ok, i added .netframwork project, the same which you had helped to work. Getting following error. "Type 'TallyConnector.Tally' is not defined."

image

saivineeth100 commented 3 years ago

Right click project => add reference => In projects menu select project

image

Did You added reference as shown above???

sanketgroup commented 3 years ago

Working perfect, Thanks a lot.

ssplopal commented 1 year ago

can you please let me know is it possible to use in VBA

saivineeth100 commented 1 year ago

can you please let me know is it possible to use in VBA.

Yeah, it is possible to use it in VBA, Install nugget and use.

ArunK199723 commented 1 year ago

It would be great if you can share the VB.Net project. I did not copy-pasted from C#, just to shorten the video I copy pasted from Notepad.

please provide video

ssplopal commented 1 year ago

I have developed my own Tally Connector in VBA after lots of online search. These documentation helped a lot Thanks. https://documenter.getpostman.com/view/13855108/TzeRpAMt#6762b3d4-7e44-4b17-87cf-9cebf3279c6b

ArunK199723 commented 1 year ago

Thanks lot

From: "ssplopal" @.> To: "Accounting-Companion/TallyConnector" @.> Cc: "ArunK199723" @.>, "Comment" @.> Sent: Wednesday, April 26, 2023 9:33:30 PM Subject: Re: [Accounting-Companion/TallyConnector] VB.Net option (#7)

CAUTION: This is an External E-mail . Please stay alert towards attachments, links and sender address.

I have developed my own Tally Connector in VBA after lots of online search. These documentation helped a lot Thanks. [ https://documenter.getpostman.com/view/13855108/TzeRpAMt#6762b3d4-7e44-4b17-87cf-9cebf3279c6b | https://documenter.getpostman.com/view/13855108/TzeRpAMt#6762b3d4-7e44-4b17-87cf-9cebf3279c6b ]

— Reply to this email directly, [ https://github.com/Accounting-Companion/TallyConnector/issues/7#issuecomment-1523673798 | view it on GitHub ] , or [ https://github.com/notifications/unsubscribe-auth/A67HZHDWUOALYG4UGSAIUQDXDFBNFANCNFSM47LJGJCA | unsubscribe ] . You are receiving this because you commented. Message ID: @.***>