Bonjour,
Je travaille sur un projet word 2007 document (VSTO 3). Je cherche à récupérer un dataset mis en cache du document dans une session précédente.
Voici comment j'ai mis en cache le dataset :
Le problème est que je ne vois pas comment le récupérer du cache. Plusieurs articles sur le web expliquent comment mettre en cache un dataset, mais je n'en ait trouvé aucun explique comment récupérer un dataset précédemment mis en cache.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 [Cached] public DataSet data; private void ThisDocument_Startup(object sender, System.EventArgs e) { data = new DataSet(); if (!this.IsCached("data")) this.StartCaching("data"); var table = data.Tables.Add(); table.Columns.Add("aaa"); table.Rows.Add("a value"); if (this.IsCached("data")) this.StopCaching("data");
mathmax
Partager