M
Mark Findlay
I am using VBA to print out PowerPoint presentations from a web page. I use
javascript. It all works fine, except that PowerPoint fails to shutdown upon
using the Quit() function. Is there something I am missing? I use similar
code to create the vba object for WORD and EXCEL and when I call their
Quit() functions they close just fine. Only PowerPoint fails to close.
Here is the code I use:
function PrintPresentation()
{
var oPPoint=0;
oPPoint = new ActiveXObject("PowerPoint.Application");
oPPoint.Visible = 1;
oPPoint.Presentations.Open(sFilename,0,0,1);
oPPoint.ActivePresentation.PrintOut();
oPPoint.ActivePresentation.Close();
oPPoint.Quit(); // <--- this is failing to shutdown PowerPoint
}
Any advice would be greatly appreciated!
Thanks!
M
javascript. It all works fine, except that PowerPoint fails to shutdown upon
using the Quit() function. Is there something I am missing? I use similar
code to create the vba object for WORD and EXCEL and when I call their
Quit() functions they close just fine. Only PowerPoint fails to close.
Here is the code I use:
function PrintPresentation()
{
var oPPoint=0;
oPPoint = new ActiveXObject("PowerPoint.Application");
oPPoint.Visible = 1;
oPPoint.Presentations.Open(sFilename,0,0,1);
oPPoint.ActivePresentation.PrintOut();
oPPoint.ActivePresentation.Close();
oPPoint.Quit(); // <--- this is failing to shutdown PowerPoint
}
Any advice would be greatly appreciated!
Thanks!
M