Additional References Required?
This line of code:
Dim labelFormat As New LabelFormat("C:\Label.btw")
is resulting in the following message:
"Reference required to assembly 'Interop.Bartender ......containing the type BarTender.Format'"
I cannot find this assembly anywhere, and the strange thing is that if I attempt to use this object, even with the error on the above line, intelisense seems to know the properties, and methods contained in the class even without this reference. What am I missing here?
Thanks
-
In your Visual Studio project, make sure to add the reference via the "Project > Add Reference" dialog.
If it's COM (ActiveX Automation) you're using, select the "COM" tab and add the reference to the corresponding "BarTender" object.
If it's .NET (using the SDKs) then select the ".NET" tab and add the reference to "Seagull.BarTender.Print"
0 -
Legacy Poster
★ BarTender Hero ★
Thanks for the response. I'm using the .net (SDK) and I've already added the reference to the "Seagull.BarTender.Print" assembly and other classes, and methods work fine. I'll continue to investigate, and if you have any additional suggestions I'd appreciate it.
Thanks again
RB
0 -
What exact Edition, Version and Build of BarTender do you have?
I take it that you'll find "Interop.BarTender.dll" under the Windows GAC (C:\Windows\assembly)? If yes, of what version is it?0 -
Legacy Poster
★ BarTender Hero ★
I'm running Enterprise Automation Trial Version 10.1 SR@ Build 2945. Using the trial version during our "Proof of concept" of development.
0 -
I take it that you'll find "Interop.BarTender.dll" under the Windows GAC (C:\Windows\assembly)? If yes, of what version is it?
0 -
Legacy Poster
★ BarTender Hero ★
I'm getting the same error here using the following:Bartender Enterprise Edition Version 10.1 SR2Build 2945Interop.Bartender.dll verison = 10.1.2.1I have confirmed this problem happens in VS2010 and VS2012.What do I do to fix this?Is this a .dll problem or is it me?Code for reference.Imports Seagull.BarTender.PrintPublic Class Form1Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.ClickUsing btengine As New EngineDim labelf As New LabelFormat("C:\Test.btw") <----FAILEnd UsingEnd SubEnd Class0 -
Legacy Poster
★ BarTender Hero ★
Tried opening the Task Master Sample print server SDK program and I'm getting the same problem.
Help.......
0 -
I've sent a message to our development team on this. I get exactly the same problem as you when trying to run the Task Master example.
0 -
Legacy Poster
★ BarTender Hero ★
Domingo R,
Thank you for your response.
Please let me know when your development team has fixed this issue.
0 -
With regards to the Task Master example, it has an error on it, because it needs to reference to BarTender.Interop.dll and it currently doesn't. The same will apply to the different projects you've been trying to compile and which failed.
1) Close the TaskMaster project.
2) Using an editor (such as Notepad++) edit the TaskMaster.vbproj file.
3) Scroll down until you see the following chunk of text.
<ItemGroup>
<Reference Include="Seagull.BarTender.Print, Version=1.0.0.0, Culture=neutral, processorArchitecture=x86">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\Seagull.BarTender\bin\Release\Seagull.BarTender.Print.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Deployment" />
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
</ItemGroup>
Below the <ItemGroup> tag add:
<Reference Include="Interop.BarTender, Version=10.1.2.1, Culture=neutral, PublicKeyToken=109ff779a1b4cbc7, processorArchitecture=MSIL" />
The section should now look like:
<ItemGroup>
<Reference Include="Interop.BarTender, Version=10.1.2.1, Culture=neutral, PublicKeyToken=109ff779a1b4cbc7, processorArchitecture=MSIL" />
<Reference Include="Seagull.BarTender.Print, Version=1.0.0.0, Culture=neutral, processorArchitecture=x86">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\Seagull.BarTender\bin\Release\Seagull.BarTender.Print.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Deployment" />
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
</ItemGroup>4) Save the file.
5) Reload the TaskMaster VB.NET project.
The project should now compile.0 -
Check out BarTender 2016, now supporting x64 and .NET framework 4.0: http://www.seagullscientific.com/downloads/label-software/barcode-label-printing-software-download/
0
Iniciar sesión para dejar un comentario.
Comentarios
11 comentarios