Developed a .Net Multithreading application , which generates reports for different products .The .rep file is available in the local drive and the .net applicatiopn will open this .rep file in BO (Using Object Model) and refreshes.The issue we are facing is when a 5 threads starts execution and when the BO Object is getting initialized we see the Report Manger getting popped up for each thread and stays opened till the reports generation gets completed.in the code I have even made the apllicaition.visible = false and Interative = false even then I am getting this .Kindly do the needful "How to hide this window"
objBusinessObject = new busobj.Application();
objBusinessObject.Logon(strUserName, strPassword, strServerName, strConnectionMode, false, false);
objBusinessObject.Visible = false;
objBusinessObject.Interactive = false;
//This is introducted to open the file from Shared Drive...since multiple threads needs to create object for the same
FileLockObj = new object();
lock (FileLockObj)
{
objBoUtilities.SaveErrorLog("Threade Initiated by the Product :" + strDrugProject);
objBusinessObject.Documents.Open(@ReportTemplatePath, true, true, null, null);
Thread.Sleep(5000);
}
Thanks
Babu