Bartender Process Follow

0
Avatar
Legacy Poster

I created a Asp.net  web service hosted in IIS that prints to a PDF print driver, when I test the web service on my local machine using WCF test client the app works like it should, I looked at task manager and only 1 process is created, when I host the webservice inside of IIS I have noticed that Bartender creates 2 processes and creates 2 PDF's instead of 1 each process prints a PDF of the same label, is there a way I can check if there are any active processes and kill it before I create a new one? 

 

 

this is my code.

 

//Declare a BarTender application variable
BarTender.Application btApp;

 

//Create a new instance of BarTender
btApp = new BarTender.Application();

 

//Open format
btFormat = btApp.Formats.Open("someformat.btw", false, "");

 

//do some work

........

 

 

//close the doceument
btFormat.Close(BarTender.BtSaveOptions.btDoNotSaveChanges);

 

                        
btApp.Quit(BarTender.BtSaveOptions.btDoNotSaveChanges);

 

//shutdown bartender process
System.Runtime.InteropServices.Marshal.ReleaseComObject(btApp);

1 comments

0
Avatar
Domingo Rodriguez
Moderator
Comment actions Permalink

What Edition, version and build of BarTender do you own?

 

Can you now program with our .NET SDKs and therefore directly work with BarTender engines or with TaskEngines collections in the "Print Server" SDK?

http://www.bartenderbarcodesoftware.com/label-software/whitepapers/Controlling-Barcode-Label-Software-using-C-Sharp-and-VB.NET(English).pdf

Please sign in to leave a comment.