Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VB.Net option #7

Open
sanketgroup opened this issue Jun 26, 2021 · 17 comments
Open

VB.Net option #7

sanketgroup opened this issue Jun 26, 2021 · 17 comments
Labels
documentation Improvements or additions to documentation help wanted Extra attention is needed

Comments

@sanketgroup
Copy link

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 saivineeth100 added documentation Improvements or additions to documentation help wanted Extra attention is needed labels Jun 26, 2021
@saivineeth100
Copy link
Member

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
Copy link
Author

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

image

@saivineeth100
Copy link
Member

saivineeth100 commented Jun 29, 2021

@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
Copy link
Author

2021-06-29_13-23-06.3.mp4

@saivineeth100
Copy link
Member

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
Copy link
Author

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
Copy link
Member

saivineeth100 commented Jun 29, 2021

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
Copy link
Author

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
Copy link
Member

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

@sanketgroup
Copy link
Author

sanketgroup commented Jun 29, 2021

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

image

@saivineeth100
Copy link
Member

saivineeth100 commented Jun 29, 2021

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

image

Did You added reference as shown above???

@sanketgroup
Copy link
Author

Working perfect,
Thanks a lot.

@ssplopal
Copy link

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

@saivineeth100
Copy link
Member

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
Copy link

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
Copy link

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
Copy link

ArunK199723 commented May 4, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants