Skip to Content

Logon info for Oracle from .NET application

Hello,

I am new to Crystal Reports. Crystal Reports XI and Oracle 10g Client are installed on my PC and allow me to display my test report with one parameter.

1) I am trying to show my c:\temp\Test.rpt in CR Viewer in C# application by means of the following lines:

ReportDocument crReport = new ReportDocument();

crReport.Load("c:\temp\Test.rpt");

crReport.SetDatabaseLogon("myuser", "mypassword");

crystalReportViewer1.ReportSource = crReport;

However, I cannot figure out how to pass Oracle SID.

What is the proper way of passing logon information (Oracle SID, user id, password ) at runtime?

2) Also, how can I pass one parameter to my report at runtime?

Thank you.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on May 26, 2009 at 08:54 AM

    You might want to post this question in the [BO .NET Development Forum|.NET SDK Application Development;

    Regards

    Caroline

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.