Cannot Load Seagull.bartender.print.dll At 64 Bit Follow

0
Avatar
Legacy Poster

Could "Seagull.bartender.print" load at 64bit System In BarTender 10 version?

I use get a BarTender 9.4 Version And VS2012 , I get an error " An attempt was made to load a program with an incorrect format." , when I load Seagull.bartender.print DLL

Best regard~

5 comments

0
Avatar
Ian Cummings
Moderator
Comment actions Permalink

0
Avatar
Legacy Poster
Comment actions Permalink

Why isn't there a 64bit dotnet dll, Is it coming?

Recompiling my project will give me a headache, Seagull is not the only external component.

0
Avatar
Ian Cummings
Moderator
Comment actions Permalink

The problem is that we would need to produce an x64 based BarTender executable as well.  This would constitute a sizeable project, but at this time we have other priorities to take care of first before we tackle this which does have a workable solution.  It will come, just not in the near future I fear.

0
Avatar
Legacy Poster
Comment actions Permalink

Buenos dias, este codigo no necesita declarar "Imports Seagull.BarTender.Print" asi que funciona para 64bits.. 
VB.NET Example
'Declaring a BarTender application variable 
Dim btApp as BarTender.Application 
'Declaring a format variable 
Dim btFormat As New BarTender.Format 
'Instantiating the BarTender object 
btApp = new BarTender.ApplicationClass 
'Setting the BarTender Application Visible 
btApp.Visible = True 
'Setting the BarTender format to open 
btFormat = btApp.Formats.Open("c:\Format1.btw", False, "") 
'Setting the ProductName substring data
btFormat.SetNamedSubStringValue("ProductName", "Fruit Loops")
'Printing the label format
btFormat.PrintOut(False, False)
'Ending the BarTender process 
btApp.Quit(BarTender.BtSaveOptions.btDoNotSaveChanges) 
0
Avatar
Legacy Poster
Comment actions Permalink

Thanks Miguelvargasing, that solution seems to be working for me. 

 

Just a note to others that need to use this: You have to add a reference to the Interop.BarTender.dll, which is a COM object. 

 

Not exactly the ideal solution for .Net, but when you have an application with other components that require 64bit functionality, it appears to be the only solution.

Please sign in to leave a comment.