We are re-writing a VB.NET application that uses the
call to open a PDF document. A message box is displayed and when the user clicks OK, the PDf is typically closed using the
call. (we also check for the
command to create and display the PDF
myPDFDocument = System.Diagnostics.Process.Start(mypdf) <--WORKS
user clicks ok that they want the PDF closed, the following command is called
MyPDFDocument.CloseMainWindow() <--Nothing happens
---- then we do some other flag setting and go on our merry way
This code works fine in debug and when installed locally. The issue comes up when we deploy the code to a vWorkspace installation. The Msgbox windows and options are presented but the open PDF does not close.
I am not able to debug in a hosted environment so I am flying blind. From what I have read to date, it does not look like this function is supported. I did look into the Terminal services commands but those appear to be to terminate the session which I do not want to do.
Before I re-engineer everything, I am wondering if anyone has had the same issue and I am missing the obvious.