استيراد XML إلى مصنف Excel

استيراد خريطة XML باستخدام Microsoft Excel

توضح لقطة الشاشة التالية كيفية استيراد خريطة XML باستخدام Microsoft Excel.

ما يجب القيام به: image_بديل_نص

استيراد خريطة XML باستخدام Aspose.Cells

يُظهر نموذج التعليمات البرمجية التالي كيفية الاستفادة من ملحقالمصنف .mportXml () . يولدملف اكسل الناتج كما هو موضح في لقطة الشاشة هذه.

ما يجب القيام به: image_بديل_نص
// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-.NET
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
// Create a workbook
Workbook workbook = new Workbook();
// URL that contains your XML data for mapping
string XML = "http://www.aspose.com/docs/download/attachments/434475650/sampleXML.txt";
// Import your XML Map data starting from cell A1
workbook.ImportXml(XML, "Sheet1", 0, 0);
// Save workbook
workbook.Save(dataDir + "output_out.xlsx");

موضوعات مسبقة