Crystal Reports SetDataSource Method takes a long time!

G

Guest

I've been developing a VB .NET Windows Form app that utilizes the built-in
Crystal Report Viewer. When I create typed instances of my report document
and my ADO.NET dataset and then apply the dataset to the report document, it
takes up to 5 minutes to process the single line of code. Here's a code
example:

Dim rpt As New TypedReportDocument
Dim ds As New TypedDataSet

' this next line takes up to five minute to process!
rpt.SetDataSource(ds)

Some other information: the dataset has approx. 20 tables without any
built-in constraints or links. It's just a simple definition of the data.

My only thought is when you apply the dataset to the report document, the
report document is going through the entire linking process to link the
tables together.

Perhaps if I link the data tables in the dataset in the dataset designer, I
can cut the execution time down.

Any other ideas? Or has someone found a solution to this problem? Thanks in
advance!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top