Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / VB.NET / November 2006

Tip: Looking for answers? Try searching our database.

Preview CR

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Agnes - 14 Nov 2006 02:14 GMT
When My application loading the Crystal report. It seems I can't use the
vb.net application until the report is loaded.
I can't run another form during report is loading.
How can I solve this ??
thanks
Spam Catcher - 14 Nov 2006 06:16 GMT
"Agnes" <agnes@dynamictech.com.hk> wrote in news:#JefQK5BHHA.3620
@TK2MSFTNGP02.phx.gbl:

> When My application loading the Crystal report. It seems I can't use the
> vb.net application until the report is loaded.
> I can't run another form during report is loading.
> How can I solve this ??

This is due to the fact the UI thread (main thread) is tied up generating
the report.

You can try running the the report on a separate thread - but CR is COM
based... so I never had too much success doing it that way.

Another possiblity is to use CR.NET's "Push" model.

The Push model uses a ADO.NET dataset to pass data to CR. Rather than
connecting directly to the database, you fill a dataset and pass it to CR.
Fill the dataset on a separate thread and this will prevent the GUI from
lock up during report generation. Once the dataset is filled, you assign it
to the Report's DataSource property. Thus, the report will only be locked
up for a split second for layout - rather than for the long query time.

Hope that helps.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.