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

            drawing.Save(out1);
            out1.Close();
        }
Example #2
0
        protected override void Commit()
        {
            // /*
            //    Saved Drawings must have the following namespaces Set:
            //    <xdr:wsDr
            //        xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"
            //        xmlns:xdr="http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing">
            // */
            ////if(isNew) xmlOptions.SetSaveSyntheticDocumentElement(new QName(CT_Drawing.type.GetName().GetNamespaceURI(), "wsDr", "xdr"));
            //Dictionary<String, String> map = new Dictionary<String, String>();
            //map[NAMESPACE_A]= "a";
            //map[ST_RelationshipId.NamespaceURI]= "r";
            //xmlOptions.SetSaveSuggestedPrefixes(map);

            PackagePart part = GetPackagePart();
            Stream      out1 = part.GetOutputStream();

            drawing.Save(out1);
            out1.Close();
        }