Solved

Crystal Reports - VB.NET - mysql ODBC Driver 3.51

Posted on 2004-08-02
7
1,258 Views
Last Modified: 2012-08-13
Hi I have a crystal report in vb.net that works fine on my computer and one other computer in my office.  Both have the full vb.net 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:

        Try
            MsgBox("starting report")
            crOrderList.Database.Tables(0).SetDataSource(DataSet1)
            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
            Else
                crOrderList.Section3.SectionFormat.EnableSuppress = False
            End If
            MsgBox("creating report")
            CrystalReportViewer1.ReportSource = crOrderList
            MsgBox("zooming")
            Me.CrystalReportViewer1.Zoom(1)
        Catch
            MsgBox("Unable to Print Order List." & Chr(13) & "Error: " & Err.Number & " - " & Err.Description)
        End Try
        SQLDisconnect()
0
Comment
Question by:stanuf
  • 4
  • 2
7 Comments
 
LVL 42

Expert Comment

by:frodoman
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?

frodoman
0
 

Author Comment

by:stanuf
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....
0
 
LVL 42

Expert Comment

by:frodoman
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.

frodoman
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 42

Expert Comment

by:frodoman
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

frodoman
0
 

Author Comment

by:stanuf
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

http://www.experts-exchange.com/Databases/Crystal_Reports/Q_21079624.html#11697371
0
 
LVL 42

Expert Comment

by:frodoman
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.
0
 

Accepted Solution

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

modulo
Community Support Moderator
Experts Exchange
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Crystal Reports - Trim Data 7 42
Rounding duration within 20 min intervals 3 36
Crystal Reports total formula with groups? 4 37
Crystal Report detail 15 37
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…
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

895 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now