跳到主内容

搜索

搜索

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

评论

5 条评论

  • Avatar
    Ian Cummings
    版主
  • Avatar
    Legacy Poster

    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
    版主

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

    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.

    0

请先登录再写评论。