Posted
on Mar 13, 2012
(permalink)
Since buying a licence I found I couldn't add reports to the c# website project I've been working on (it worked fine on the trial version!) I've spent the best part of a day getting to the bottom of this having never previously pondered how VS plugins work, and have now resolved the issue. Part of the problem is that VS picks the template up from different places depending on what language you're using and what type of project you're building. To show this, in windows explorer go to
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\ItemTemplates
and search for Telerik_Reporting_Q1_2012.zip. I found 4 versions, under
.\Web\CSharp
.\CSharp\Reporting
.\VisualBasic\Reporting
.\Web\VisualBasic
Each zip file contains a file with the extension .vstemplate which should contain the section
<WizardExtension>
<Assembly>Telerik.Reporting.Design.VisualStudio, Version=6.0.12.215, Culture=neutral, PublicKeyToken=a9d7983dfcc261be</Assembly>
<FullClassName>Telerik.Reporting.Design.VisualStudio.AddNewReportWizard</FullClassName>
</WizardExtension>
As far as I can tell, the only one that's correct is the one in .\CSharp\Reporting. So I edited the .vstemplate file in the location relevant to me (.\Web\CSharp\Telerik_Reporting_Q1_2012.zip\Class.vstemplate), saved it out to my temp directory, reconstructed the zip file using my edited version and the other file(s) that were in it, and ran devenv /installvstemplates (as administrator).
I can now add reports to my website project, though the wizard doesn't fire up automatically as it does for a web application project for some reason. Having added a blank report I have to open it in design view and select Telerik/Reporting/Report Wizard from the menu.
Thanks to the other posters on this thread. Perhaps Telerik could get a proper fix out for this asap?