Doc2Any SDK not working on Windows 2003

I make a test at VM sever2008 64bit.
It don't work.
I use the customer test project.
Command Line Information:

-log c:\\log.txt c:\\example.doc c:\\example.pdf

This test program shows the error information:

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
at WindowsFormsApplication1.Form1.DocToAnyRunCmd(String strCmdLine)
at WindowsFormsApplication1.Form1.button1_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1434 (REDBITS.050727-1400)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
----------------------------------------
WindowsFormsApplication1
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/TOOL/doc2any_sdk_C%23/WindowsFormsApplication1.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1434 (REDBITS.050727-1400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1434 (REDBITS.050727-1400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1434 (REDBITS.050727-1400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
============================================================
Hi,

We downloaded evaluation version of server and developer SDK and try to run the sample WindowsFormsApplication.exe on Windows 2003 server with OpenOffice. It generated VeryPDF printer drivers but we are getting a return value of 4.

Attached is your windows forms application of C# with additional Messageboxes to show logging. We added -useoffice 0 option in the strCmd string, instead of xxxxxx which was already there.

We did not see the open office option parameter if there is any in the readme.txt.

When we run the example without any changes to the sample code, with Microsoft Office, it works fine, but on windows 2003 server with open office the example get hang up (not responding).

We are in the process of evaluating the server sdk before buying the license and we are stuck right now.

Regards,

============================================================

doc2any is return following values,

1: conversion successful
-1: this application has been damaged
4: something is wrong in command line options
5: the trial version has expired
6: no input filename
7: can't find input files in batch conversion, e.g., *.pdf wildcard
other values are indicate something is wrong during conversion.

We suggest you may use command line version to print the detailed log information,

http://www.verydoc.com/doc2any_cmd.zip

after you downloaded it, please unzip it to a folder, run following command line,

doc2any.exe -debug -useoffice 0 C:\test.doc C:\out.pdf

if you still have same problem, please send to us the log message, after we checked the log message, we will figure out a solution to you asap.

VeryDOC
============================================================
Hi,

After removing the -useoffice 0 and adding -log option in sample application

strCmd = "-$ XXXXXXXXXXXXXXXXXXXX -log C:\\log1.txt C:\\example.doc C:\\example.pdf";

and copying the jodconverter-2.2.2 folder/files, the example.doc is still not converted to pdf and there was no return value from API call DocToAnyRunCmd (application hangs(Not responding)). Please find attached the log1.txt file.
============================================================

Please by following steps to try again,

1. Please kill all processes of soffice.exe from task manager first,

2. Run following command line to launch soffice.exe application and monitor 8100 port,

"C:\Program Files\OpenOffice.org 3\program\soffice.exe" -headless -nologo -norestore -nofirststartwizard -accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager

3. Run doc2any to convert your DOC file to PDF file again.

If you still have same problem, please create a remote desktop account on your test machine, we will arrange our engineer to login your test machine and work on this problem for you asap,

We suggest you may share your PC or Server by TeamViewer, TeamViewer can be downloaded from following website,

http://www.teamviewer.com

after you installed TeamViewer, please email to us your TeamViewer's ID and Password, please also arrange your test machine running at 24 hours, after we logged into your test machine and solved the problem, we will send an email to you, then you can close the TeamViewer application.

VeryDOC
============================================================
Hi,

We were able to figure out what was the problem and found the way to do the conversion when OpenOffice is used.
By default, when the user logs in to the server, the soffice.exe is already started in task manager. Also, there were hanging verypdf printer drivers already created from previous conversion attempts.

By deleting the process(soffice.bin closes the soffice.exe as well) and removing the printer drivers, then running the demo app with strcmd as follows:

strCmd = "-$ XXXXXXXXXXXXXXXXXXXX -log C:\\log1.txt C:\\example.doc C:\\example.pdf";

we were able to convert the example doc to pdf and also log file helped us in debugging the problem, when we accidently did not put jodcconverter related jar files in the running folder.

We found that Doc2any sdk automatically creates the soffice.exe soffice.bin(processes) and verypdf printer drivers the very first time(though conversion is slow the first time) and then keeps on using them for subsequent conversions(which is pretty fast).

Thanks for your help.

Regards,
============================================================
Thanks for your great message, your information will helpful for our other customers in the future.

If we can be of any other assistance, please feel free to let us know.

Thank you and have a nice day!

VeryDOC

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!