Connecting To A Running Bartender.exe Using Printerserver Sdk 追蹤
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.