Results 1 to 2 of 2

Thread: Crystal Report questions

  1. #1

    Thread Starter
    Addicted Member wolfofthenorth's Avatar
    Join Date
    Jan 2001
    Location
    Tatooine
    Posts
    169

    Crystal Report questions

    Is there another way to display a report without a CrystalReportViewer? Is there something like Report.Show?

    Also... How do I get it to stop asking me to log in everytime I show the report? I have configured my ConnectionInfo object, but I can't find a function that will Logon.

    Thanks for any help.

    That which does not kill us, only makes us stronger.

  2. #2
    Addicted Member
    Join Date
    Mar 2001
    Location
    Devon, UK
    Posts
    181
    As far as I'm aware you have to use the viewer to display reports.

    To prevent it asking you to log on you need to provide the login details on the load event of the report viewer i.e.

    Dim tbCurrent As CrystalDecisions.CrystalReports.Engine.Table
    Dim tliCurrent As CrystalDecisions.Shared.TableLogOnInfo

    For Each tbCurrent In cbsMain.Database.Tables
    tliCurrent = tbCurrent.LogOnInfo
    With tliCurrent.ConnectionInfo
    .ServerName = ""
    .UserID = ""
    .Password = ""
    .DatabaseName = ""
    End With
    tbCurrent.ApplyLogOnInfo(tliCurrent)
    Next tbCurrent

    You need to do this for each report. If anyone knows of an easier way let me know.
    Wind and waves resolves all problems.

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