Product's name: HTML to Image Converter
Product's version number: 126.96.36.199
Operating System: Windows Server 2003
Description of problem:
I would like the application to run on a Windows 2003 Server machine. When I run the application on the 2003 machine the image produced is of poor quality (dashboard-bad.png). If I run the application on a Windows 7 machine with the same options and retrieving the same URL the image produced is good quality (dashboard-good.png). Both machines have IE 8 installed on them.
How many color depth for the monitor of your Windows 2003 Server? We suggest you may set color depth of monitor to 32bit to your Windows 2003 Server to try again, maybe the 32bit color depth will work better for you.
The color depth for the Windows 2003 Server is 16bit. I will see what I can do to increase the color depth since it currently does not allow me to do so. It's strange that it should require that since the browser shows the web page correctly on that machine with the same settings.
Thanks for your message, please adjust the color depth to 32bit to try again, then you will get better image quality.
The Windows 2003 Server is on a vmware virtual machine. I tried setting the color depth on the console to 32bit and the image is created correctly from the console. If I invoke the application through the Windows scheduler and not from the vmware console, the image is poor quality. Do you have any ideas as to what needs to be done to run your application successfully in a vmware Windows Server 2003 environment?
This can be done easily, you can use Free docPrint Service to run HTML to Image Converter from an interactive user account instead of system user account, please refer to following steps,
Free docPrint Service (4) can be downloaded from following web page,
docPrint Service can be used to run a Command Line from current active user account or a special user account, this tool is useful to overcome permission restrictions in SYSTEM and Non-Interactive user accounts.
Please by following steps to use docPrint Service,
1. Download docPrint_Service.zip and unzip it to a folder,
2. Run docPrint_Service.exe application, you will see an icon appear in tray area,
3. You can run following command lines to test it first, "docPrint_client.exe" will deliver the Command Line to docPrint_Service.exe application, docPrint_Service.exe application will execute the Command Line from active user account automatically,
docPrint_client.exe nowait "C:\VeryDOC\html2image.exe" -url=http://www.verydoc.com/ -out=C:\verydoc.png
docPrint_client.exe wait "C:\VeryDOC\html2image.exe" -url=http://www.verydoc.com/ -out=C:\verydoc.png
4. You can call "docPrint_client.exe" from your code, please refer to a simple C# code at below,
public partial class runpptexe : System.Web.UI.Page
protected void Page_Load(object sender, EventArgs e)
Process proc = new Process();
proc.StartInfo.FileName = "C:\\VeryDOC\\docPrint_client.exe";
string strArguments = "wait \"C:\VeryDOC\html2image.exe\" -url=http://www.verydoc.com/ -out=C:\verydoc.png ";
proc.StartInfo.Arguments = @strArguments;
Response.Write("File has been successfully converted");
We hoping this solution will helpful to you, please give it a try.