Home All Groups Group Topic Archive Search About

Can RDLC Reports be used with Oracle data sources?

Author
17 Dec 2005 6:18 PM
Will Baldwin
I am trying to get the ReportViewer to work in VS2005 Professional.

1) Created a connection to the Oracle 10g Database in the Server Explorer.
2) Created an empty 'report.rdlc' file.
3) Created an report.aspx with a ReportViewer bound to the 'report.rdlc'
file.

The documentation states that I should add a Project Data Source by dragging
tables and fields from the server explorer.  This does not seem to work.
Can RDLC Reports be used with an Oracle Data Source?

thanks,

- Will

Author
18 Dec 2005 12:23 AM
Houston Lucifer
Hi, i have used rdlc with the informix database. What is did was add a empty
dataset to the rdlc and i have a business layer (a vb class) which has a
function which returns a dataset. When you add a report to the page add an
objectdatasource and specify the type as the vb class and the select method
as the funtion. This works for me.

Show quoteHide quote
"Will Baldwin" wrote:

> I am trying to get the ReportViewer to work in VS2005 Professional.
>
> 1) Created a connection to the Oracle 10g Database in the Server Explorer.
> 2) Created an empty 'report.rdlc' file.
> 3) Created an report.aspx with a ReportViewer bound to the 'report.rdlc'
> file.
>
> The documentation states that I should add a Project Data Source by dragging
> tables and fields from the server explorer.  This does not seem to work.
> Can RDLC Reports be used with an Oracle Data Source?
>
> thanks,
>
> - Will
>
>
>
Author
21 Feb 2006 11:48 PM
Mobes
Houston Lucifer wrote:
> *What is did was add a empty dataset to the rdlc...*

Can you expand on this?

I'm trying to do a similar thing with the report viewer...I need to use an oracle stored procedure to get the data.

The TableAdapter wizard only works with SQL Server.  But if I could use the object datasource to get the data from a vb class that would be great. 

I created a new dataset.xsd file and added a "datatable" with a couple columns that match to what my object datasource will return.

I save the xsd and it shows in my report designer.  So I drag them onto the report into a "table" object and save it. 

Running the report doesn't return any data. 

How do I connect these two fields in the dataset.xsd/report.rdlc (name, org_id) to the fields that the object datasource returns?  I know the object datasource works fine because I hooked it up to a gridview and it displays what I want.

Normally this would be done in the dataset.xsd file, but like I said I can't do it there since it's with oracle stored procedures.

Thanks,
-Mobes -- Mobes ------------------------------------------------------------------------ Posted via http://www.codecomments.com ------------------------------------------------------------------------