Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
Aspose.Cells APIs provide the WorkbookDesigner class to work with Smart Markers, where the formatting and formulas are placed in the designer spreadsheets and then processed with the WorkbookDesigner class to populate the data according to the specified Smart Markers. It is also possible to create Excel charts by processing Smart Markers, which will require the following steps.
A designer spreadsheet is a simple Excel file created with the Microsoft Excel application or Aspose.Cells APIs, containing the visual formatting, formulas, and smart markers, where the contents can be populated at runtime.
For the sake of simplicity, we will create the designer spreadsheet using the Aspose.Cells for .NET API and later process it against a dynamically created data source for demonstration purposes.
In order to process the designer spreadsheet, one must have a data source that corresponds to the Smart Markers used in the designer spreadsheet. For instance, we have created a Smart Marker entry as &=Sales.Year, which represents the Year column in the DataTable Sales. In case a corresponding column isn’t available in the data source, the Aspose.Cells APIs will skip the processing for that particular Smart Marker, and, as a result, the data for the Smart Marker will not be populated.
To demonstrate this use case, we will create the data source from scratch and process it against the designer spreadsheet created in the previous step. However, in a real‑time scenario, data could already be available for further processing, so you can skip the creation of a data source if data is already available.
The processing of Smart Markers is quite simple, as demonstrated by the following code snippet.
Once the data is in place, all we need to do is create a chart based on the data source. To keep the example simple, we will use the Chart.SetChartDataRange method so that we do not have to configure the chart further.
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.