Page 1 of 1

Convert Jpeg to Pdf "No process is associated with this obje

Posted: Thu Nov 15, 2012 9:02 am
by MegaZver
I have used sample "CSharp Converter (C#)"

If i try convert *.doc file or some one Microsoft Office document all fine.
But if i try convert *.jpeg or *.html ...
i can see error "No process is associated with this object."

What can i do?

Re: Convert Jpeg to Pdf "No process is associated with this

Posted: Wed Nov 21, 2012 5:17 am
by Claudiu (Softland)
The CSharp Converter sample uses the ShellExecute Windows function with the "print" verb to print the files.
In order to be able to print jpeg or html files you have to have some applications associated with these file types. When ShellExecute is called, Windows will call the associated application for the selected file. In Windows 7 for instance, you may see the file type associations in Control Panel, Default Programs, "Associate a file type or protocol with a specific program".

So be sure to associate a program for those extensions and the printing will work.