Exemple #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            string sFilePathName = EnsureDestFileUnique(MMExt.UserLogLocation() + "Excel01.xlsx");

            MMExcel.MMExcel mm  = new MMExcel.MMExcel(StartMode.smNew, sFilePathName);
            MMWS            ws0 = mm.Sheet[0];

            ws0.Name = "ZeroSheet";
            double dInchValue = 0.25;

            ws0["A1", "AB120"].RowHeight   = dInchValue.toPointsVertical();
            ws0["A1", "AB120"].ColumnWidth = dInchValue.toPointsHorizontal(); // dColWidthPerPoint * dInchValue.toPointsHorizontal();
            ws0["A1", "A1"].Rng.Font.Name  = "Century Gothic";
            Excel.Font fontA = ws0["A1", "A1"].Rng.Font;



            mm.Close();

            Process.Start(sFilePathName);
        }
Exemple #2
0
 public MMWS(MMExcel aOwner, Excel.Worksheet aWS)
 {
     Owner = aOwner;
     WS    = aWS;
 }