pptconv.exe C:\in.ppt C:\out.jpg with php failed

Dear Sir and Madam,

we have buy 1 Server License yestorday. we want use the command "pptconv.exe C:\in.ppt C:\out.jpg" in PHP Code.

we use VeryDOC PowerPoint Converter v3.0 for converting ppt to jpg.
we write command following command to convert jpg on command prompt,

"C:\Program Files (x86)\VeryDOC PowerPoint Converter v3.0\pptconv.exe" C:\pptx\test_2\test.pptx C:\pptx\test_2\test_jpg\test_2.jpg -width 800 -height 600 -$ XXXXXXXXXXXXXXX

it will working on command prompt but when we write that code in php like,

$pid=exec('"C:\Program Files (x86)\VeryDOC PowerPoint Converter v3.0\pptconv.exe" C:\pptx\test_2\test.pptx C:\pptx\test_2\test_jpg\test_2.jpg -width 800 -height 600 -$ XXXXXXXXXXXXXXX); echo $pid;

then no output, the error is "Conversion Finished! Result value = -2 ".

we can cache the error message in php

[0] => Thank you for choosing our product.
[1] => Loading "C:\xampp\htdocs\pptx\tmp\4e7851ab27497_in\test.pptx" file...[20%] [2] => Shutdown PowerPoint Application...[60%] [3] => Conversion Finished! Result value = -2

could you help me, what can we do for that.
our system is windows 2008.

2011-09-20
=================================
This problem can be solved easily, please refer to more solutions about this problem at following web pages,

http://www.verypdf.com/ppt-converter/convert-ppt-to-flash.htm

Call PowerPoint to SWF Converter from PHP code

PowerPoint Converter pptconv.exe return error value -3

call pptconv.exe from C# code

you can also find more article about how to use pptconv.exe from server side application from following web page,

http://www.verypdf.com/wordpress/category/powerpoint-to-flash-converter

VeryPDF
==============================
Our system is windows 2008(64 bit) and MS Office 2010.

we  try to install exeshell, and use the exeshell in php, but there is an error message.

Fatal error: Uncaught exception 'com_exception' with message 'Failed to create COM object `exeshell.shell': Klasse nicht registriert ' in C:\xampp\htdocs\pptx\test.php:2 Stack trace: #0 C:\xampp\htdocs\pptx\test.php(2): com->com('exeshell.shell') #1 {main} thrown in C:\htdocs\pptx\test.php

<?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;
?>

we have test it in windows xp and office 2003, all fine.
windows xp and office 2010, all fine.
windows 2003 and office 2007, all fine.
windows 2008(64 bit) and MS Office 2010, failed.

what is the reason, don't support windows 2008(64 bit)system?
===================================
"exeshell.shell" COM is a 32bit COM, so you can’t call it from 64bit application directly.

We suggest you may by following steps to "Enable 32-bit Applications" for IIS service,

1. Create a new application pool for the helpdesk application.
2. In the new pool's advanced settings, set "Enable 32-bit Applications" to true.
3. Right-click the helpdesk application's virtual directory in IIS manager,
make sure it has been converted to application. This makes it be a separate
web application which is independent to the parent site.
4. In the virtual directory's Basic settings, change it to use the new application pool.

You can also change the settings to your original Application Pool, please go to the Application Pool tied to the web application, Advanced Properties... and setting "Enable 32-bit Applications" to True, then your ASP code can call 32bit pdfout.dll correctly.

You can also refer to more information from following web pages,

http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/405f5bb5-87a3-43d2-8138-54b75db73aa1.mspx?mfr=true

http://www.eggheadcafe.com/software/aspnet/33931176/iis-7-running-32-bit-app-in-64bit-server.aspx

after you set "Enable 32-bit Applications" to true in IIS Server, you can call "exeshell.shell" COM from your application properly.

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

This entry was posted in PowerPoint to Flash and tagged . Bookmark the permalink.

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!