export template from dll