PowerPoint Converter pptconv.exe return error value -3

we have an issue converting the attached slide.

As you know we call pptconv from our service.

In our logs we see an exit code of -3 for the slide, yet when we run the command manually on the command line the conversion completes successfully.

Here is our extract from the log file:

2011-06-24 13:51:40,042 INFO  [External-C:\Program Files\VeryDOC PowerPoint Converter v2.0\pptconv.exe "C:\guru\components\SandboxSlideConverter\work\20110624125147574-F67291AE-360F-4F30-42B7-857DC71561EB\SS Learn -  47.ppt" "C:\guru\components\SandboxSlideConverter\work\20110624125147574-F67291AE-360F-4F30-42B7-857DC71561EB\original\.png"-9676] - Exit value is (Number of files produced): -3

Running the command "C:\Program Files\VeryDOC PowerPoint Converter v2.0\pptconv.exe" "C:\guru\components\SandboxSlideConverter\work\20110624125147574-F67291AE-360F-4F30-42B7-857DC71561EB\SS Learn -  47.ppt" "C:\guru\components\SandboxSlideConverter\work\20110624125147574-F67291AE-360F-4F30-42B7-857DC71561EB\original\.png" directly on the command line however completes successfully.

Can you please advise why this is returning a -3 exit code when we call pptconv.exe as a service for this slide?

I look forward to hearing from you.
============================================
Hi,

"-3" is indicate something is wrong during conversion. The service account hasn't permission to launch MS PowerPoint application, we suggest you may run the application from an interactive user account instead of service account to try again.

Please by following steps to try again,

1. Please download EXEShell COM Library from following URL,

http://www.verydoc.com/download/exeshell.zip

Please refer to following page about EXEShell COM Library,

http://www.verydoc.com/exeshell.html

2. Please use following code to call pptconv.exe from PHP or ASP code,

ASP code,
<%
Set comEXEShell = Server.CreateObject("exeshell.shell")
comEXEShell.RunCommandLine "Administrator", "123456", "C:\pptconv.exe -$ XXXXXXXXXXXXXXXXXXX ""C:\in.ppt"" ""C:\out.swf"""
Set comEXEShell = Nothing
%>

PHP code,
<?php
$PdfCreator =new COM("exeshell.shell") or die("Cannot start PdfCreator");
$PdfCreator->RunCommandLine("Administrator", "123456", "C:\pptconv.exe -$ XXXXXXXXXXXXXXXXXXX C:\in.ppt C:\out.swf");
$PdfCreator = null;
?>

Please set correct username and password to RunCommandLine() function, then you can launch the conversion from this special user account.

Remark:
You may encounter Error 1314 in some Windows systems when you launch the conversion, please by following steps to solve the 1314 Error,

ERROR 1314:
~~~~~~~~~~~~~
1314 A required privilege is not held by the client. ERROR_PRIVILEGE_NOT_HELD
~~~~~~~~~~~~~

To resolve this issue:
1. Click Start, click Run, type "secpol.msc", and then press ENTER.
2. Double-click "Local Policies".
3. Double-click "User Rights Assignment".
4. Double-click "Replace a process level token".
5. Click "Add", and then double-click the "Everyone" group
6. Click "OK".
7. You may have to logout or even reboot to have this change take effect.

Please refer to following two screenshots to understand above steps,

http://www.verydoc.com/images/err1314-1.png
http://www.verydoc.com/images/err1314-2.png

Please look at following page for the details about ERROR 1314,

http://www.verydoc.com/exeshell.html

3. OK, you should no problem to call pptconv.exe from ASP or PHP code now.

Please notice, you need change "XXXXXXXXXXXXXXXXXXXX" to correct License Key which sent to you by swreg.

However, if you still have same problem, please create a remote desktop account on your test machine, email to us the IP address, user name and password of this remote desktop account, we will login your test machine and assist you to solve this problem asap.

VeryPDF
VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *


Verify Code   If you cannot see the CheckCode image,please refresh the page again!