This example demonstrates how to insert an external reference link from a workbook to another workbook.
An external workbook is created at runtime. Note that use of this method in production code requires a license to the DevExpress Document Server or the DevExpress Universal Subscription and a reference to the DevExpress.Docs.vX.Y.dll assembly. You can use a workbook loaded into another SpreadsheetControl instead (the SpreadsheetControl.Document property).
The external workbook is populated with random data by importing a data table at runtime.
Subsequently the workbook is added to the ExternalWorkbookCollection.
A cell formula in the current worksheet can reference a workbook contained in that collection.
Added By: Andrey Kushnarev at: 11/20/2014 12:52:41 PM
An external workbook is created at runtime. Note that use of this method in production code requires a license to the DevExpress Document Server or the DevExpress Universal Subscription and a reference to the DevExpress.Docs.vX.Y.dll assembly. You can use a workbook loaded into another SpreadsheetControl instead (the SpreadsheetControl.Document property).
The external workbook is populated with random data by importing a data table at runtime.
Subsequently the workbook is added to the ExternalWorkbookCollection.
A cell formula in the current worksheet can reference a workbook contained in that collection.
Question Comments
Added By: Andrey Kushnarev at: 11/20/2014 12:52:41 PM
But how I can create loop reference, for example
workbook1.Worksheets[0].Cells["A1"].Formula = "=[workbook2]Sheet1!A1"
and
workbook2.Worksheets[0].Cells["A2"].Formula = "=[workbook1]Sheet1!C5"
???
And there may be many books and references may be very varied.