Beispiel #1
0
        /**
         * Construct a SpreadsheetML Drawing from a namespace part
         *
         * @param part the namespace part holding the Drawing data,
         * the content type must be <code>application/vnd.openxmlformats-officedocument.Drawing+xml</code>
         * @param rel  the namespace relationship holding this Drawing,
         * the relationship type must be http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing
         */
        internal XSSFDrawing(PackagePart part, PackageRelationship rel)
            : base(part, rel)
        {
            XDocument xmldoc = ConvertStreamToXml(part.GetInputStream());

            drawing = Npoi.Core.OpenXmlFormats.Dml.Spreadsheet.CT_Drawing.Parse(xmldoc, NamespaceManager);
        }
Beispiel #2
0
 /**
  * Create a new SpreadsheetML Drawing
  *
  * @see Npoi.Core.xssf.usermodel.XSSFSheet#CreateDrawingPatriarch()
  */
 public XSSFDrawing()
     : base()
 {
     drawing = NewDrawing();
 }