Smrf.NodeXL.ExcelTemplate.ErrorUtil.GetTemplateMessage C# (CSharp) Method

GetTemplateMessage() public static method

public static GetTemplateMessage ( ) : String
return String
    GetTemplateMessage()
    {
        return ( String.Format(

            "The easiest way to use {0} is to create a new workbook from the"
            + " Excel template named \"{1}\".  The template contains all"
            + " required worksheets, tables, and columns."
            ,
            ApplicationUtil.ApplicationName,
            ProjectInformation.ExcelTemplateName
            ) );
    }
}

Usage Example

コード例 #1
0
        GetTableColumnIndex
        (
            ListObject oTable,
            String sColumnName,
            Boolean bColumnIsRequired
        )
        {
            Debug.Assert(oTable != null);
            Debug.Assert(!String.IsNullOrEmpty(sColumnName));
            AssertValid();

            ListColumn oColumn;

            if (ExcelTableUtil.TryGetTableColumn(oTable, sColumnName, out oColumn))
            {
                return(oColumn.Index);
            }

            if (bColumnIsRequired)
            {
                OnWorkbookFormatError(String.Format(

                                          "The table named \"{0}\" must have a column named \"{1}.\""
                                          + "\r\n\r\n{2}"
                                          ,
                                          oTable.Name,
                                          sColumnName,
                                          ErrorUtil.GetTemplateMessage()
                                          ));
            }

            return(NoSuchColumn);
        }
All Usage Examples Of Smrf.NodeXL.ExcelTemplate.ErrorUtil::GetTemplateMessage