docPrinter Pro issue on IIS

We were trying to use docPrinter Pro for conversion of documents into PDF.
But when try converting over IIS, it fails without any error.

But running it my local system , it works just fine. Is there anything which

should be done for getting it work on an IIS Server machine?
==============================================
Please refer to example 6 at following web page, you can use this example to
try again,

Example 6: Run conversion via "docPrint_Service.exe" application,

http://www.verypdf.com/artprint/docprintsdk.htm

Example 6: Run conversion via "docPrint_Service.exe" application,

Please by following steps to run conversion via "docPrint_Service.exe"
application,

1. Please login your server via Remote Desktop under Administrator user
account (or other user accounts who own Administrator right),

2. Please run "docPrint_Service.exe" application,

"C:\Program Files\docPrint Pro v5.0\docPrint_Service.exe"

3. Call RunCmd() method to deliver a command line to "docPrint_Service.exe" application,

PHP example,

<?php
$com = new COM("DocPrintCom.docPrint");
$com->docPrintCOM_Register("XXXXXXXXXXXXXX","VeryPDF.com Inc.");
$com->RunCmd("-i http://www.verypdf.com -o C:\\test\\output.pdf -* XXXXXXXXXXXXXX -d -O 2 -s ShowHTMLStatusBar=1 -l 10000", 0);
?>

VB example,

Private Sub Command1_Click()
Set docPrint = CreateObject("DocPrintCom.docPrint")
nRet = docPrint.docPrintCOM_Register("XXXXXXXXXXXXXX", "VeryPDF.com Company")
nRet = docPrint.RunCmd("-i http://www.verypdf.com -o C:\output.pdf -* XXXXXXXXXXXXXX -d -O 2 -s ShowHTMLStatusBar=1 -l 10000", 0)
MsgBox "Return value = " & Str(nRet)
End Sub

4. Close Remote Desktop and leave this user logged in.

*Please Notice: After you reboot the server, you need login your server via
Remote Desktop with this user account ("docPrint_Service.exe" was installed
inside this user account), and close Remote Desktop, leave this user logged
in, when you call RunCmd() function, the conversion will be executed from
this user account automatically.

VeryPDF
==============================================
Thanks for help. Can u provide the same help using C# .Net language?

Another thing is when i try using PHP Page for the same purpose, i m easily able
to convert to PDF, But not the docx,xlsx,pptx files though its mentioned as
supported type at your site.

It gives the error like "Make sure MSOffice is installed", But i do have
MSOffice installed on the server and its MS Office 2010.

Can u please tell me whether the files are supported or not, If yes, then Why i
am not able to convert them using PHP.
==============================================
>>Thanks for help. Can u provide the same help using C# .Net language?

Please refer to following C# code,


Please by following steps to run conversion via "docPrint_Service.exe" application,

1. Please login your server via Remote Desktop under Administrator user account (or other user accounts who own Administrator right),

2. Please run "docPrint_Service.exe" application,

"C:\Program Files\docPrint Pro v5.0\docPrint_Service.exe"

3. Call RunCmd() method to deliver a command line to "docPrint_Service.exe" application, please refer to following C# code,

~~~~~~~~~~~~~~~~~~~~~~~~~~~
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TestWithVeryPDF
{
class Program
{
static void Main(string[] args)
{
try
{
DocPrintCom.docPrint docPrintObj = new DocPrintCom.docPrint();
docPrintObj.docPrintCOM_Register("XXXXXXXXXXXXXX", "VeryPDF.com Company")
docPrintObj.RunCmd("-i C:\test.docx -o C:\output.pdf -* XXXXXXXXXXXXXX -d -O 2 -s ShowHTMLStatusBar=1 -l 10000", 0)
docPrintObj = null;
Console.WriteLine("Done");
}
catch (Exception e)
{
Console.WriteLine(e.Message);
}
}
}
}
~~~~~~~~~~~~~~~~~~~~~~~~~~~
4. Close Remote Desktop and leave this user logged in.

*Please Notice: After you reboot the server, you need login your server via Remote Desktop with this user account ("docPrint_Service.exe" was installed inside this user account), and close Remote Desktop, leave this user logged in, when you call RunCmd() function, the conversion will be executed from this user account automatically.


>>Another thing is when i try using PHP Page for the same purpose, i m easily able
>>to convert to PDF, But not the docx,xlsx,pptx files though its mentioned as
>>supported type at your site.

Please run following command line to convert your docx,xlsx,pptx files to PDF files,

"C:\Program Files\docPrint Pro v5.0\doc2pdf.exe" -i C:\test.docx -o C:\out.pdf

"C:\Program Files\docPrint Pro v5.0\doc2pdf.exe" -i C:\test.xlsx -o C:\out.pdf

"C:\Program Files\docPrint Pro v5.0\doc2pdf.exe" -i C:\test.pptx -o C:\out.pdf

Can you work fine with above command lines?


>>It gives the error like "Make sure MSOffice is installed", But i do have
>>MSOffice installed on the server and its MS Office 2010.
>>Can u please tell me whether the files are supported or not, If yes, then Why i
>>am not able to convert them using PHP.

This problem is caused by permission issues, you may give enough permission to Word DCOM to try again, please look at following web page for more information,

http://verydoc.com/doc-to-any-faq.html

also, in "Console Root / Component Services / Computers / My computer / DCOM Config" option, "Your COM Name" should equal to "Microsoft Office Word 97 - 2003 Document" in your system, please give enough permission to "Microsoft Office Word 97 - 2003 Document" DCOM in your system to try again, you can also run "Microsoft Office Word 97 - 2003 Document" DCOM from an interactive user account to solve the permission restrictions in default system account.

VeryPDF
===========================

Thanks for your help.

The solution you suggested for PHP worked for me. Now i am able to convert doc, docx, xls, xlsx. But Still have not got any solution for .pptx files.

Is there any other solution i have to apply for pptx?
===========================
The same code should support PPTX document without any problem.

Just for test purpose, can you run following command line to convert your PPTX document to PDF file correctly?

"C:\Program Files\docPrint Pro v5.0\doc2pdf.exe" -i C:\test.pptx -o C:\out.pdf

Can you work fine when you run above command line by manual in CMD window?

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 docPrint Pro 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!