Well, writing and integrating your design time control is not that simple.
and be simplified with VS 2005 RTM). I would recommend you wait till we have
on the registrations). Popular sessions are more likely to be recorded and
"Christopher Ireland" <cireland@gmail.com> wrote in message
news:%23HQGV2iUFHA.3244@TK2MSFTNGP15.phx.gbl...
> "Robert Bruckner [MSFT]" <robruc@online.microsoft.com> wrote in message
> news:#r1drZAUFHA.3352@TK2MSFTNGP12.phx.gbl...
>> Well, since I worked on the design and the implementation, I certainly
>> should know how it works :).
>
> Excellent! Many thanks for taking some time out to answer mine (and
> others)
> questions!!
>
>> The ICustomReportItem interface is the way to go. We are working on
>> making
>> an interesting but yet not too complex sample publicly available that
> shows
>> how to implement a CRI design-time control (for report designer) and a
>> CRI
>> processing control (for report server). We hope to have the sample and
>> documentation ready when we release RS 2005.
>
> That would be fantastic.
>
> In the meantime I wonder if you're up for giving me a couple of tips in
> the
> meantime <g>. My first objective is to get my custom component on the
> Report
> Items ToolBox, so I created a simple dummy class that looks like this:
>
> using System;
> using System.Collections.Generic;
> using System.Text;
> using Microsoft.ReportingServices.Interfaces;
> using Microsoft.ReportingServices.ReportProcessing;
> using Microsoft.ReportingServices.ReportRendering;
>
> namespace MyReportControl
> {
>
> public class MyNonDundasChart : ReportItem
> {
> public MyNonDundasChart() { }
> }
>
> public class MyReportControl : ICustomReportItem
> {
>
> private CustomReportItem customItem;
>
> public ChangeType Process()
> {
> return ChangeType.None;
> }
>
> public Action Action
> {
> get { return new Action(); }
> }
>
> public CustomReportItem CustomItem
> {
> set { customItem = value;}
> }
>
> public ReportItem RenderItem
> {
> get { return new MyNonDundasChart(); }
> }
> }
> }
>
>
> However, when I try and add MyReportControl.dll into the Report Items
> ToolBox, I get the following error:
>
> There are no components in
> "C:\Test\ReportProject1\MyReportControl\bin\Debug\MyReportControl.dll"
> that
> can be placed on the toolbox.
>
> Any chance of giving me a couple of "preview" pointers? Please <gg>?
>
>> In the meantime you may want to look for a session at the upcoming TechEd
>> 2005 conference presented by Andrew Bryan (Dundas Software). He will talk
>> about their work using the CRI approach (derived from complex prototypes
> we
>> have built) and how to build your own CRI controls:
>>
http://www.msteched.com/content/sessions.aspx, Session BIN335 - "SQL
> Server
>> 2005 Reporting Services Custom Report Items", Thursday, June 9, 5:00 PM -
>> 6:15 PM.
>
> Maybe I'll look into getting the DVD set which may have this session on
> it;
> Orlando, Florida is quite a way from Girona, Catalonia :-)
>
> Best Regards,
>
> Chris.
>
>