Crystal Reports - VB.NET - mysql ODBC Driver 3.51

Posted on 2004-08-02
Last Modified: 2012-08-13
Hi I have a crystal report in that works fine on my computer and one other computer in my office.  Both have the full installed.  The other computer that it doesn't work only has the framework.  What happens is all of my code is implemented and the view is set it then pops up a window asking for database connection information.  No matter what I enter in this box it still will not show the report.  I don't want this window to show....has anyone any ideas.  Here is my code to show the report  all message boxes display:

            MsgBox("starting report")
            MsgBox("dataset filled setting parameters")
            crOrderList.SetParameterValue("StartDate", StartDate)
            crOrderList.SetParameterValue("EndDate", EndDAte)
            MsgBox("checking for summary")
            If Summary = True Then
                crOrderList.Section3.SectionFormat.EnableSuppress = True
                crOrderList.Section3.SectionFormat.EnableSuppress = False
            End If
            MsgBox("creating report")
            CrystalReportViewer1.ReportSource = crOrderList
            MsgBox("Unable to Print Order List." & Chr(13) & "Error: " & Err.Number & " - " & Err.Description)
        End Try
Question by:stanuf
  • 4
  • 2
LVL 42

Expert Comment

ID: 11697371
It looks like you're using an ado dataset as your datasource, right?  Does the other computer (non-working) have crdb_adoplus.dll on it?


Author Comment

ID: 11697399
yes it does -- I found something else on the internet that said to put this in the code

            crOrderList.SetDatabaseLogon(RegSqlUser, RegSqlPassword)

I did this and it is now working....
LVL 42

Expert Comment

ID: 11697402
Also have you made sure that the other computer has access to the database and that the dataset is correctly populated?  (Maybe attach same dataset to a datagrid?)  You could be seeing a blank report because you're passing an empty dataset to the report.

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

LVL 42

Expert Comment

ID: 11697419
Looks like we posted at the same time...   My 2nd posting was on target - because you didn't have logon credentials you were sending a blank dataset to crystal.  

Glad it's working


Author Comment

ID: 11697427
I posted a question and figured out the answer on my own -- please cancel my questoin and refund me my points....thank you
LVL 42

Expert Comment

ID: 11697529
stanuf - You should post this request in the Community Support topic area (still include the link to this question though).

mod - No objection to "Delete & Refund" request.

Accepted Solution

modulo earned 0 total points
ID: 11699222
Closed, 485 points refunded.

Community Support Moderator
Experts Exchange

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question