This used to work for be several years ago before I updated Office to 2010. Now some old web code I used to use a lot no longer works. I am creating excel files in vbscript. So here's what's happened:
1. I get a "permission denied" error when this line is executed: Set xlsObject = CreateObject("Excel.Application")
2. So I setup the security settings for Excel using DCOMCNFG and added <pc-name>\IIS_IUSRS giving it full control
3. I then went into the folder where Excel.exe is found (C:\Program Files (x86)\Microsoft Office\Office14) and added the same user to its security settings.
4. I haven't gotten to the point where the file is going to be saved, but I also added that user to the security settings of the folder where the Excel files will be written.
I don't know what else to do. I'm sure someone out there has had to do this before and has a suggestion. Whatever is the final things to do I'm going to write them down in case I need to do it again.
I'm running my site under IIS 6.1 on my desktop computer. This code works on my customer's intranet, but he is using very ole technology that will be going away shortly, but I need to be able to tun this here so I can show him the Before and After that I propose to create printed output differently.
Thanks in advance,
Jerry
Jerry Scannell
1. I get a "permission denied" error when this line is executed: Set xlsObject = CreateObject("Excel.Application")
2. So I setup the security settings for Excel using DCOMCNFG and added <pc-name>\IIS_IUSRS giving it full control
3. I then went into the folder where Excel.exe is found (C:\Program Files (x86)\Microsoft Office\Office14) and added the same user to its security settings.
4. I haven't gotten to the point where the file is going to be saved, but I also added that user to the security settings of the folder where the Excel files will be written.
I don't know what else to do. I'm sure someone out there has had to do this before and has a suggestion. Whatever is the final things to do I'm going to write them down in case I need to do it again.
I'm running my site under IIS 6.1 on my desktop computer. This code works on my customer's intranet, but he is using very ole technology that will be going away shortly, but I need to be able to tun this here so I can show him the Before and After that I propose to create printed output differently.
Thanks in advance,
Jerry
Jerry Scannell