Results 1 to 4 of 4

Thread: Not showing the crystal report

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Feb 2007
    Posts
    187

    Not showing the crystal report

    Hi,

    my vb coding are as below:

    Code:
    CrystalReport1.WindowTitle = "Testing Report"
    CrystalReport1.ReportTitle = "Testing Report"
    CrystalReport1.ReportFileName = App.Path & "\testing.rpt"
    
    CrystalReport1.Connect "DSN = testing; UID = sa; PWD = sa"
    CrystalReport1.Destination = crptToWindow
    CrystalReport1.WindowState = crptMaximized
    CrystalReport1.DiscardSavedData = True
    CrystalReport1.Action = 1
    I'm running my vb source code at Windows Vista, VB6 SP6, CR 8, DSN set to "testing" & tested successfully ...

    After the code line "CrystalReport1.Action = 1", it shows the CR for a while, but no data, then it jump out and give me a "Cannot Open Sql Server" msgbox

    any idea on how to solve this???

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Not showing the crystal report

    Do you have the proper connection to the server set up?

    If you are getting this error, what is actually testing successfully?

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Feb 2007
    Posts
    187

    Re: Not showing the crystal report

    Quote Originally Posted by Hack
    Do you have the proper connection to the server set up?

    If you are getting this error, what is actually testing successfully?
    hmm... what do you mean by proper connection to the server set up?

    May I know what is the difference using CrystalReport.Action = 1 and CrystalReport.PrintReport?

  4. #4
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Not showing the crystal report

    I presume your SQL Server is setup on a network file server. You need access to both the file server as well as the database.

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