Dynamically switching Template File Path

Dynamically switching Template File Path

Forum member · Jul 1, 2008
Hi - I would like to be able to use a PDF document as a template (essentially a background) in a report. This seems to be working OK. However I would also like to be able to switch the template file at runtime (e.g. to apply different branding). I tried doing this with a parameter, but it doesn't seem to work (I get an 'Illegal characters in path' exception when I try to make the TemplatePath dynamic.

Re: Dynamically switching Template File Path

Support · Jul 1, 2008
Hello, It is not possible to change the TemplatePath property of the Report object dynamically. The error you have sent shows that the path has some illegal character. Please make sure that you are using correct path. Can you please send over the code, dplx, and the template PDFs you are using to our [^a|mailto:support@cete.com|Support Team^] so that they can take a look at it. Thanks, ceTe Software Support Team.

Re: Dynamically switching Template File Path

Forum member · Jul 1, 2008
Hi - the error message was when I tried to enter a Template Path of e.g. #Parameters["Template"]#. As you say, this does not appear to be supported. It would be nice to have the facility to do this without having to alter the XML directly. Just a suggestion...

Re: Dynamically switching Template File Path

Support · Jul 1, 2008
Hello, Thanks for the feedback and we will add this feature request to our wish list and we may add this feature to a future release but currenlty nothing is planned. Thanks, ceTe Software Support Team.