Example #1
0
        protected internal override void Commit()
        {
            PackagePart part = GetPackagePart();
            Stream      out1 = part.GetOutputStream();

            //XmlOptions xmlOptions = new XmlOptions(DEFAULT_XML_OPTIONS);
            //Sets the pivotCacheDefInition tag
            //xmlOptions.SetSaveSyntheticDocumentElement(new QName(CTPivotCacheDefInition.type.Name.
            //         GetNamespaceURI(), "pivotCacheDefInition"));

            //// ensure the fields have names
            //if (ctPivotCacheDefinition.cacheFields != null)
            //{
            //    CT_CacheFields cFields = ctPivotCacheDefinition.cacheFields;
            //    foreach (CT_CacheField cf in cFields.cacheField)
            //    {
            //        if (cf.name == null || cf.name.Equals(""))
            //        {
            //            cf.name = "A";
            //        }
            //    }
            //}

            ctPivotCacheDefinition.Save(out1);
            out1.Close();
        }
        protected internal override void Commit()
        {
            PackagePart part = GetPackagePart();
            Stream      out1 = part.GetOutputStream();

            //XmlOptions xmlOptions = new XmlOptions(DEFAULT_XML_OPTIONS);
            //Sets the pivotCacheDefInition tag
            //xmlOptions.SetSaveSyntheticDocumentElement(new QName(CTPivotCacheDefInition.type.Name.
            //         GetNamespaceURI(), "pivotCacheDefInition"));
            ctPivotCacheDefinition.Save(out1);
            out1.Close();
        }