[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.InvalidTemplateException

InvalidTemplateException Class

The exception that is thrown when a template is invalid.

Inheritance
InvalidTemplateException
Implements
Namespace: GrapeCity.Documents.Excel
Assembly: DS.Documents.Excel.dll
Syntax
public class InvalidTemplateException : Exception, ISerializable
Public Class InvalidTemplateException
    Inherits Exception
    Implements ISerializable
Examples
worksheet.Range["A1"].Value = "{{ds.Test(DefaultValue=GGB)}}";
try
{
    workbook.ProcessTemplate();
}
catch (InvalidTemplateException exception)
{
    string actualMessage = exception.Message;
}

Constructors

Name Description
InvalidTemplateException(string)

Initializes a new instance of the InvalidTemplateException class with a specified error message.