Can't insert the chart in the word doc

Hi,
I am trying to display charts in a word document. I created bookmarks in a word document and tried this.

Document doc = new Document("DocName.doc");
DocumentBuilder builder = new DocumentBuilder(doc);
builder.MoveToBookmark("MainGraph");
Image img = function_returning_image();
builder.InsertImage(img);

My function_returning_image() working fine. I have assigned the chart.GetChartImage() to a image box. It’s showing the report image on the form.
But it’s not displaying that on the doc file.
What am I doing wrong?

This message was posted using Aspose.Live 2 Forum

Hi

Thanks for your inquiry. Could you please attach your template and output documents here for testing? I will check the issue and provide you more information.
Best regards.