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

Free Support Forum - aspose.com

Jpeg image and output

When you have a jpeg image in the template, the output doesn’t render it properly. I am attaching the source and output files. Here is the code I used.

using (FileStream sourceStream = File.OpenRead(@“C:\RocketMatter\scripts\Logo_Template.docx”))
{
using (FileStream outputStream = File.Create(@“C:\RocketMatter\scripts\Logo_Template_Output.doc”))
{
Document document = new Document(sourceStream);
document.Save(outputStream, SaveFormat.Doc);
}
}

Thanks,
Gaurav

Hi

Thanks for your request. I cannot reproduce the problem on my side. I used the latest version of Aspose.Words for testing. You can download the latest version from here:

http://www.aspose.com/community/files/51/.net-components/aspose.words-for-.net/category1188.aspx

Best regards,

I updated the library and it solved the issue. It could have been a bug in the old version.

Thanks,
Gaurav