Hey Folks,
I have an ASP page which opens an Excel document on the server, puts data into it, prints it out and then closed it without saving.
I have developed this on my own machine (IIS5 on WinXP) and it works fine when I run it locally or from a remote machine.
So I copied it onto my webserver (IIS6 in Windows Server 2003) and tried to run it. By debugging it I have found the problem is something to do with the printing. When I comment out the print line, the program will return. But it just hangs if I try to print it.
The code to print out the document is simply:
It just prints the document to the printer selected by the user.
The only main difference is that I have Excel 2003 on my machine and the server only has Excel 2000. Would that have anything to do with it or is it likely to be some other problem?
Mighty
I have an ASP page which opens an Excel document on the server, puts data into it, prints it out and then closed it without saving.
I have developed this on my own machine (IIS5 on WinXP) and it works fine when I run it locally or from a remote machine.
So I copied it onto my webserver (IIS6 in Windows Server 2003) and tried to run it. By debugging it I have found the problem is something to do with the printing. When I comment out the print line, the program will return. But it just hangs if I try to print it.
The code to print out the document is simply:
Code:
xlApp.ActiveSheet.PrintOut , , 1, false, Request.Form("Printer")
It just prints the document to the printer selected by the user.
The only main difference is that I have Excel 2003 on my machine and the server only has Excel 2000. Would that have anything to do with it or is it likely to be some other problem?
Mighty