Results 1 to 10 of 10

Thread: Crystal report

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2010
    Posts
    2

    Crystal report

    when i run the crystal report , there is message
    "The report you requested requires further information."
    For dataset , it requires username and password

    I cannot login the report page.....

    please help....

    I want to view report without username and password

  2. #2
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Crystal report

    Hey,



    I think you are going to need to provide us some more information before we are going to be able to help you.

    Can you show some of the code that you are using? How did you go about creating the Report in the first place?

    Gary

  3. #3

    Thread Starter
    New Member
    Join Date
    Feb 2010
    Posts
    2

    Re: Crystal report

    1.add dataset
    2.add table from databse to dataset
    3.then build crystal report from the report wizard in dotnet 2008
    4. include crystal report into crystal report viewer in aspx page
    then i run the report
    but cannot view the report as page contains the

    The report you requested requires further information.



    --------------------------------------------------------------------------------
    DataSet1
    Server name:
    Database name:
    User name:
    Password:
    Use Integrated Security


    as a result , i cannot view the report

  4. #4

  5. #5
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Crystal report

    Quote Originally Posted by pmollik View Post
    I want to view report without username and password
    You can't do that. Why would you want to make your data insecure?

  6. #6
    Addicted Member Claude2005's Avatar
    Join Date
    Jan 2010
    Location
    Philippines
    Posts
    166

    Re: Crystal report

    I have the same case when I started using Crystal Reports. I think the username and password is used for authenticating a user if he/she is valid to actually use the Crystal Report or not. IMO, it has nothing to do in making your data insecure, since I can view the same DataSet in a DataGridView.

  7. #7
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Crystal report

    Not sure I understand - are you saying this is a CrystalReports username and password?

    (Also, being able to 'view' the data in a dataset/or dgv still requires a connection string so that counts as the secure bit)

  8. #8
    Addicted Member Claude2005's Avatar
    Join Date
    Jan 2010
    Location
    Philippines
    Posts
    166

    Re: Crystal report

    I really don't know what exactly to say but, when you use crystal reports to view a System.Data.DataSet, that "login part" always appear.

    So here is what I did. To remedy this, we have to create a DataSet within your "App_Code" folder, let's say you named it "DataSetSample".

    If you create an instance for System.Data.DataSet, you type...

    Code:
    Dim ds As New System.Data.DataSet
    To call the DataSet that is within your "App_Code" folder, you type

    Code:
    Dim ds As New DataSetSample
    From here, go to the DataSetSample Tab, and create a DataTable from the Server Explorer. Let's say you want data from the "Personnel_Information" Table from your database. Click and drag the Personnel_Information to the workspace of the DataSetSample Tab. By default, the DataTable will also be named as Personnel_Information.

    And when you populate your DataSetSample, you type... (sample code in SQL)

    Code:
    Dim da As New System.Data.SqlClient.SqlDataAdapter("SQL Command here", "SQL Connection String here")
    Dim ds As New DataSetSample
    da.Fill(ds, "Personnel_Information")
    Please take note the line "da.Fill(ds, "Personnel_Information")". It is important to name your ds with the same name as your DataTable in your DataSetSample.

    PS. Please go easy on me, I just started computer programming just months ago. I really don't know what you call this process.

  9. #9
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Crystal report

    You can refer to it as "regular ADO.NET". You've created a dataset and filled it with a dataadapter. The DataSetSample must be a class that derives from DataSet in some way. DataSetSample must be available to you in some project you're using, but in other projects you do, you'll use DataSet.

  10. #10
    Addicted Member Claude2005's Avatar
    Join Date
    Jan 2010
    Location
    Philippines
    Posts
    166

    Re: Crystal report

    I see that's what you call it. I'm only using ADO.NET if I'm using Crystal Reports.

    @Topic Starter

    I hope this thread helps

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width