private void LoadData()
        {
            // Gets the web application's path.
            string path     = (this.Master as Aspose.Cells.GridWeb.Examples.CSharp.Site).GetDataDir();
            string fileName = path + "\\Miscellaneous\\Charts.xls";

            // Imports from an excel file.
            GridWebchart.ImportExcelFile(fileName);
        }
Exemplo n.º 2
0
    private void LoadData()
    {
        // Gets the web application's path.
        string path = Server.MapPath("~");

        path = path.Substring(0, path.LastIndexOf("\\"));
        string fileName = path + "\\File\\charttest.xls";

        // Imports from a excel file.
        GridWebchart.ImportExcelFile(fileName);
    }