pgnbn
02-03-2005, 07:38 AM
Hi @ll!
I have a simple asp page with a botton on it with the following code:
onClick='javascript:window.close();'
I would like to keep window closing on click, but now I need that ASP page process a Server operation that can run as a batch leaving the rest of the application running after closing the window.
This operation does the conversion of an HTML just printed document into a PDF document. Using Neevia's Doc Converter COM.
The code for the conversion is:
Set DC = Server.CreateObject("docConverter.docConverterClass")
DC.DocumentOutputFormat = "PDF"
DC.DocumentOutputFolder = myFolder
rv = DC.SubmitFile(FileToConvert, "")
The final statement makes server process the request but doesn't stop execution of the code.
How can I execute de code above and close the window simultaenously?
Thanks in adavance for help,
Pedro
I have a simple asp page with a botton on it with the following code:
onClick='javascript:window.close();'
I would like to keep window closing on click, but now I need that ASP page process a Server operation that can run as a batch leaving the rest of the application running after closing the window.
This operation does the conversion of an HTML just printed document into a PDF document. Using Neevia's Doc Converter COM.
The code for the conversion is:
Set DC = Server.CreateObject("docConverter.docConverterClass")
DC.DocumentOutputFormat = "PDF"
DC.DocumentOutputFolder = myFolder
rv = DC.SubmitFile(FileToConvert, "")
The final statement makes server process the request but doesn't stop execution of the code.
How can I execute de code above and close the window simultaenously?
Thanks in adavance for help,
Pedro