Free Support Forum - aspose.com

Anyone know of a Aspose.Word expert?

My company is working on a complex report generation tool. Can anyone recommend someone who knows how to use Aspose.Word for .NET to generate complex reports with imbedded pictures, graphs, tables, excel spreadsheets, etc...?

Thanks.

Hi Lee,


Thanks for your inquiry. Aspose.Words is a class library that enables your applications to perform a great range of document processing tasks. Aspose.Words supports DOC, DOCX, RTF, HTML, OpenDocument, PDF, XPS, EPUB and other formats. With Aspose.Words you can generate, modify, convert, render and print documents without utilizing Microsoft Word®. For more information please see the following link:
http://www.aspose.com/docs/display/wordsnet/Introducing+Aspose.Words+for+.NET

Please note that Aspose.Words tries to mimic the same behaviour as MS Word do. Please read following documentation links for your kind reference.
http://www.aspose.com/docs/display/wordsnet/Aspose.Words+Features
http://www.aspose.com/docs/display/wordsnet/Working+with+Tables
http://www.aspose.com/docs/display/wordsnet/DocumentBuilder+Overview

Unfortunately, inserting new OLE objects into Word documents and updating existing OLE objects is not supported at the moment. We had already logged this feature request as WORDSNET-1206 in our issue tracking system.

In the future we will consider adding a public API that allows creating charts from scratch in Word documents (WORDSNET-4617). You will be notified via this forum thread once these feature are available.

Hope this answers your query. Please let us know if you have any more queries.

Do you mean I can't insert an Excel spreadsheet using Aspose.Word?

Hi Lee,


Thanks for your inquiry. Yes, you can not insert MS Excel document into MS Word document by using Aspose.Words at the moment. We will update you via this forum thread once this feature is available.

Can you please give me an estimate of when inserting Excel documents into a Word document using Aspose.Words will be available? Will it be available before 2014?

Is there a work-around, perhaps some integration between Aspose.Excel and Aspose.Word? We use both products.

Thanks.

Hi Lee,


Thanks for your inquiry. I am afraid the requested feature has been postponed till a later date due to some other important issues and new features. We will inform you as soon as there are any further developments.We apologize for your inconvenience.

However, you can use Aspose.Cells to create charts and convert the charts to image. Once you have image of chart, you can insert that image to Word document by using Aspose.Words as shown in following code snippet.

//Instantiating a Workbook object<o:p></o:p>

Aspose.Cells.Workbook workbook = new Aspose.Cells.Workbook();<o:p></o:p>

//Adding a new worksheet to the Excel object<o:p></o:p>

int sheetIndex = workbook.Worksheets.Add();<o:p></o:p>

//Obtaining the reference of the newly added worksheet by<o:p></o:p>

//passing its sheet index<o:p></o:p>

Aspose.Cells.Worksheet worksheet = workbook.Worksheets[sheetIndex];<o:p></o:p>

//Adding a sample value to “A1” cell<o:p></o:p>

worksheet.Cells[“A1”].PutValue(50);<o:p></o:p>

//Adding a sample value to “A2” cell<o:p></o:p>

worksheet.Cells[“A2”].PutValue(100);<o:p></o:p>

//Adding a sample value to “A3” cell<o:p></o:p>

worksheet.Cells[“A3”].PutValue(150);<o:p></o:p>

//Adding a sample value to “B1” cell<o:p></o:p>

worksheet.Cells[“B1”].PutValue(4);<o:p></o:p>

//Adding a sample value to “B2” cell<o:p></o:p>

worksheet.Cells[“B2”].PutValue(20);<o:p></o:p>

//Adding a sample value to “B3” cell<o:p></o:p>

worksheet.Cells[“B3”].PutValue(50);<o:p></o:p>

//Adding a chart to the worksheet<o:p></o:p>

int chartIndex = worksheet.Charts.Add(Aspose.Cells.Charts.ChartType.Pie3D, 5, 0, 15, 5);<o:p></o:p>

//Accessing the instance of the newly added chart<o:p></o:p>

Aspose.Cells.Charts.Chart chart = worksheet.Charts[chartIndex];<o:p></o:p>

//Adding Series Collection (chart data source) to the chart ranging from “A1” cell to “B3”<o:p></o:p>

chart.NSeries.Add(“A1:B3”, true);<o:p></o:p>

//Converting chart to image.<o:p></o:p>

chart.ToImage(MyDir + “Chart.Jpeg”, System.Drawing.Imaging.ImageFormat.Jpeg);<o:p></o:p>

Document doc = new Document();<o:p></o:p>

<o:p> </o:p>

DocumentBuilder builder = new DocumentBuilder(doc);<o:p></o:p>

builder.InsertImage(MyDir + “Chart.Jpeg”);<o:p></o:p>

doc.Save(MyDir + “AsposeOut.docx”);


The issues you have found earlier (filed as WORDSNET-1206) have been fixed in this .NET update and this Java update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.
(53)

The issues you have found earlier (filed as WORDSNET-4617) have been fixed in this .NET update and this Java update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.
(1)

The issues you have found earlier (filed as ) have been fixed in this update. This message was posted using BugNotificationTool from Downloads module by MuzammilKhan