We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Document Convert problem

I can run Convert Doc/Docx to JPG thumbnail Project in server(new installed win2003、framework2.0, not install office2007) and the Word doc document can be converted to JPG successfully, but error occoured when conver Word docx document to JPG(Error snapshot in ConvertDocThumbnail.rar file’s ConvertNote Dir). Everything is ok when run this in the computer which installed office2007. Why?
In addition, if conver a doc/doc document which contains pictures to pdf, the layout of the pdf file is disorderly, any good solution for this problem? Please find the relevant code and screen capture in ConvertDocThumbnail.rar attachment.

Thanks for your inquiry. I don’t think that MS Word 2007 is the reason of the problem. Your code works fine on my side (without MS Word 2007).
You can also try using Aspose.Words.Viever namespace to convert word document to images. For example see the following code.

Document doc = new Document("in.doc");
DocumentRenderer renderer = new DocumentRenderer(doc);
Bitmap[] arr = renderer.GetPages();
for (int i = 0; i < arr.Length; i++)
    arr[i].Save("page" + i.ToString() + ".jpg");

But note that Aspose.Words.Viewer namespace is currently in beta.
Best regards.