How can I use a DLL from one project in a second project in Visual Studio 2010 using vb.net - vb.net

I am working with Visual Studio 2010 on a Windows 7 64-bit system. I am coding in vb.net. I am trying to use the SpreadsheetGear DLL (D:\VS2010Code\Report Depository\Bin\SpreadsheetGear.dll) in my DashInApps (D:\TWhitsett\DashInApps) project to load my output data to Excel. Can someone assist and guide me in the right direction to get this done?

Right click on your project and click 'Add Reference'. Then point to the SpreadsheetGear DLL in question. You can't just put it in the bin directory and expect it to work without loading it into the project first.

Related

Reporting template in Visual Studio 2017

The Reporting template seems missing in VS2017 (I am using Visual Basic). Any way to get it back?
I have already tried installing SQL Server Data tools and the rdlc extension from the marketplace, but it still doesn't show up.
The template is available in the Add New Item window. Select Visual C# and then look for the Report and Report Wizard templates. These templates are only visible under Visual C#, not under any subitem.
Try updating ReportViewer to version 14.0.0.0 and installing Microsoft.RdlcDesigner. This worked for me for Visual C# and then just like J.Bunch said there is no sub item Reporting like there was before so you just scroll down thorough all items. Also try this although the example is for C# I think it should at least help you with VB.Net as well. Hope it helps.

Crystal Report Viewer

Previously I use vb6 with crystal report and i use the crystal report viewer with vb6 to preview the report.
now i moved to vb.net 2010 where i cannot find the crystal report viewer Activex control? i specially want to use crystal report Activex viewer in dot.net because it will allow the user to edit the report as user has need,
if the crystal report activex viewer cannot support then give me way to modify the crystal report file after the exe has been build in vb.net 2010?
.NET uses .Net DLLs, not Active X controls. When in .Net Studio...you will be looking for the DLL's that support run time operations...NOT an ActiveX. Dig back into your documentation and samples...it should be covered there.
As Juan said you need to look for .Net DLLs in order to use CrystalReportViewer.
From your question I am assuming you already have installed Crystal Report 13 for Visual Studio 2010. If you haven't https://www.sap.com/india/products/crystal-visual-studio.html this is the link from where you can download it.
Now coming to your question of not being able to find dll of CrystalReportViewer You need to follow these steps:
First in your menu bar go to project and go to properties of the project.
Go to Compile section, then to advanced compile options.
Go to Target Framework by default it will be on ".NET Framework 4 Client Profile" set it to ".NET Framework 4".
Restart your Visual Studio.
Voila you can see it.
Link to download .net Framework 4
https://www.microsoft.com/en-in/download/details.aspx?id=17718
Mark it as Accepted Answer if it works for you.

How do I integrate CLIPS.net library into VB 2010?

I'm making an expert system using VB.net 2010
I already downloaded the Mommosoft.ExpertSystem.dll in CLIPS.NET
Assuming that I already made the Knowledge-based file with CLIPS, how to I integrate it to VB.NET?
In Visual Studio you right click on solution file > click Add References > add the Mommosoft.ExpertSystem.dll
Then in your VB.Net project you will then be able to call methods in the DLL, eg
Mommosoft.ExpertSystem.DoSomething()

Adding DLL reference to VB.NET project

Just to start off, this question does seem very similar to another post Add the DLL (lame_enc.dll) reference to my project, but I haven't been able to successfully apply that answer. I am pretty new to VB.NET so it is very possible I'm simply missing something obvious.
I am trying to link a DLL to a VB.NET 2010 project to allow my VB app to play *.ogg files. I followed some other advice here on the forums and downloaded FMOD's FMOD Ex Programmers API. I am trying to now reference that functionality. These appear to be the files I need to somehow reference.
C:\Program Files (x86)\FMOD SoundSystem\FMOD Programmers API Windows\api\fmodex64.dll.
C:\Program Files (x86)\FMOD SoundSystem\FMOD Programmers API Windows\api\libfmodex64_vc.lib.
I haven't discovered how to add a *.lib reference (or the equivalent), but selecting the DLL as a reference gives the following error.
A reference to 'C:\Program Files (x86)\FMOD SoundSystem\FMOD
Programmers API Windows\api\fmodex64.dll' could not be added. Please
make sure that the file is accessible, and that it is a valid assembly
or COM component.
I'm not sure what I could be missing. Any ideas? Thanks!
In Solution Explorer, double-click the My Project node for the project.
In the Project Designer, click the References tab.
Click the Add button to open the Add Reference dialog box.
In the Add Reference dialog box, select the tab indicating the type of component you want to reference.
Select the components you want to reference, then click OK.
Another approach I was trying is working for me. I found a site with a working example of a LibZPlay VB.NET sample ( http://planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=7789&lngWId=10 ). It runs under VS 2008 and I was able to adapt my project to use LibZPlay (open source library http://libzplay.sourceforge.net/WELCOME.html ) under VS 2008.
That is sufficient for me for now. Thanks for your advice. It was likely some configuration issue or misunderstanding on my end.
Using VB.net 2015 I (could not add or even find a System32 dll) as a reference using Solution Explorer, Tab References. Going to the MAIN Menu, Projects/Add References...
Used Browse and All the System32 dll were visible. Then I was able to load the needed dll.

How to link .dll into visual studio 2008?

I'm doing VB coding using Visual Studio 2008.
How to import a .dll file into my program?
Can anyone help me please.
Thank you.
Add the reference (From your menu Project->Add Reference and browse for the dll file)
Put Imports DLL.Namespace at the top of your code.
You need to add a reference to the DLL...
Right click references in the project explorer
Click on the browse tab
Browse to your dll
Add a using statement in your code which points to said DLL