Aspose::Words::Drawing::Charts::Chart::get_SourceFullName method
Chart::get_SourceFullName method
Gets the path and name of an xls/xlsx file this chart is linked to.
System::String Aspose::Words::Drawing::Charts::Chart::get_SourceFullName()
Examples
Shows how to get/set the full name of the external xls/xlsx document if the chart is linked.
auto doc = System::MakeObject<Aspose::Words::Document>(get_MyDir() + u"Shape with linked chart.docx");
auto shape = System::ExplicitCast<Aspose::Words::Drawing::Shape>(doc->GetChild(Aspose::Words::NodeType::Shape, 0, true));
System::String sourceFullName = shape->get_Chart()->get_SourceFullName();
ASSERT_TRUE(sourceFullName.Contains(u"Examples\\Data\\Spreadsheet.xlsx"));
See Also
- Class Chart
- Namespace Aspose::Words::Drawing::Charts
- Library Aspose.Words for C++