We do not provide direct support for preserving data type when template marker is used. However you can use IsStringsPreserved property of IWorksheet, which would preserve the values in the workbook as string. And you can use the IgnoreErrorOptions to ignore the green error indicator. The below code illustrates this:
Here is the sample for your reference:
This page will automatically be redirected to the sign-in page in 10 seconds.