Showing posts with label reportingservices. Show all posts
Showing posts with label reportingservices. Show all posts

Wednesday, March 7, 2012

Custom DataProcessing for ReportingServices

Hi to all, i hope someone can help me.
I'm deploying a new custom DataProcessing Extension (that should work
with webservices but this is not the problem) and before start to
develop mine, i've configured RS to work with
FsiDataExtension(installed as Sample with RS),
BusinessObjectDataSource(from Code Architects Srl that work well with
meb service).
Now i'm going to develop my solution.
1.I've copy and paste FsiDataExtension *.cs files, renamed it with my
name, copyed .dll file in the right RS bin folders, added all xml
portion config to all .config files that need to be modified.
2.I've created new report project, and i've created 3 shared
datasource:
Fsi, Bo and My.
3.I'm going to create a new report:
a.Add New Report
b.Select Fsi DataSource then click -> Next (all work well)
c.Select My DataSource then click -> Next
Shit !! Shit !!!! Shit !!!!
"A connection cannot be made to the database. Set and check the
connection string" Error.
I've add a trace in all constructor of all DataExtension and using
SysInternals.dbgvnt i can see tracing of all DataExtension exception
mine...
what i'm doing wrong '?
Is it a config problem'
Why i'm able to configure all third part DataExtension and not mine '
Should i do something of particular '
tks Simoneok, i'm stupid ! there was an error in .config files :( sorry
if u're having problem with a report in design mode, deploy it and look
in C:\Program Files\Microsoft SQL Server\MSSQL\Reporting
Services\LogFiles folder, i founded the solution to my problem in this
way.

Saturday, February 25, 2012

Custom Data Extension Parameters

I am currently writing a Custom Data Extension using the RS 2000
Microsoft.ReportingServices.Interfaces dll. Iâ've found quite a few examples
online and have almost gotten it to work the way I would like it to. I have
implemented the IDbCommandAnalysis.GetParameters interface and when I create
a report with the report designer (VS 2003) the parameters are auto created
in the data layer and the display layer (what is prompted to the user). The
issue I am running into is that parameter type is not being selected within
the display layer. It remains as the default value of string. Does anyone
know how the designer determines what the type is when it is auto creating
the parameters? Iâ'm pretty sure this is possible since it behaves that way
with the prepackaged Microsoft data extensions. What do I need to implement
to get that to work?
Thanks,
-Nathan F.If you implemented the necessary interfaces, then your parameter class
stores the values of the parameters in an object. This object can then
call getType() later on, which is how I am assuming the designer
determines what type of input it is. In essence you shouldn't need to
add any code to figure out the type of the parameter, but you should
code so that you can figure out what types would go where. Most likely
you will just be placing strings inside your parameters since the
command itself will just be a string. Hope this helps!
Lance M.
Nathan wrote:
> I am currently writing a Custom Data Extension using the RS 2000
> Microsoft.ReportingServices.Interfaces dll. I've found quite a few examples
> online and have almost gotten it to work the way I would like it to. I have
> implemented the IDbCommandAnalysis.GetParameters interface and when I create
> a report with the report designer (VS 2003) the parameters are auto created
> in the data layer and the display layer (what is prompted to the user). The
> issue I am running into is that parameter type is not being selected within
> the display layer. It remains as the default value of string. Does anyone
> know how the designer determines what the type is when it is auto creating
> the parameters? I'm pretty sure this is possible since it behaves that way
> with the prepackaged Microsoft data extensions. What do I need to implement
> to get that to work?
> Thanks,
> -Nathan F.