Can't load template 'Excel2007.st'

Dec 20, 2010 at 7:10 AM

Can't load template 'Excel2007.st'---> StringTemplate stNeed = stgCollection.GetInstanceOf(Template);

 

i use it in a webapplication and copy templates folder to /bin then have that error

 

pls help me

Coordinator
Dec 20, 2010 at 9:17 AM

the rellevant code is in here:

 string where = @"templates\Collection";
if (!string.IsNullOrEmpty(PathFiles))
{
where = Path.Combine(PathFiles, where);
}

if you put into bin , please create into bin the folder templates, then the folder collection and then put this instruction before all lines
CollectionRenderProperties.PathFiles = Server.MapPath("~/bin");

Dec 20, 2010 at 3:37 PM

everything is ok,thank you very much!