Connecting To A Running Bartender.exe Using Printerserver Sdk Follow

0
Avatar
Legacy Poster

For some time I've been using BT 7.3 with the ActiveX API.  We've upgraded to BT 10.x and the performance is horrible.  I've been told I need to change over to the .NET implementation.  That being said, after a bit of experimentation, I've found that using GetObject() in the ActiveX realm I can get my app to connect to a bartender instance setup to run from another application.  How do I do that from the .NET using the taskmanager and queue task techniques. 

 

My issue is, I have a web based system that currently uses a windows dll that uses the ActiveX approach.  Since the users are remote to the servers, a central bartender instance has worked for a long time on version 7.  Now, I need to change that.  Since I don't want to completely re-write it right now just to get to BT 10, the issue appears to be the amount of time it takes for BT 10 to initialize and create the printed document compared to BT 7.  So, it makes sense to have bartender running already and just queue up tasks they can execute on.  I'm not really thrilled with the use of commander, not trying it, I'm assuming it will not be as fast as simply calling a running bartender instance with unnecessary overhead.  What would seem prudent is a bartener server that you can send the XML to via an IP socket, is that available?

 

So, is there a way with the new .NET SDK to connect to an existing instance of Bartender that was started outside of an application or is using GetObject() the only way to do this?  My fear with using GetObject() is it seems to use a single instance of bartender (even if multiple instances are running) and bartender seems to grow without any release of resources after each label is printed.

1 comments

0
Avatar
Legacy Poster
Comment actions Permalink

Just an update.  The GetObject does not actually reconnect to a previously activated version of Bartender.  It only works within the same running context (so the same user on the PC).  So, I'm left using commander or on of the other technologies which will be a significant re-write for us.  So, this thread can be closed...  Unless someone has another idea.

Please sign in to leave a comment.