Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Loading Report takes to long...
Message
De
25/11/2004 00:29:15
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Rapports
Titre:
Loading Report takes to long...
Versions des environnements
Environment:
VB.NET 1.1
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
00964594
Message ID:
00964594
Vues:
35
Hi to all,

My code below permits the user to access tables from SQL server.
   Dim myTable As Table
   Dim myLogonInfo As TableLogOnInfo
   Dim oRpt As New ReportDocument

   ' Load  the Report
   oRpt.Load("D:\REPORTS\REPORTNAME.RPT")

   ' Set the username and password
   For Each myTable In oRpt.Database.Tables
      myLogonInfo = myTable.LogOnInfo
      myLogonInfo.ConnectionInfo.UserID = "UserID"
      myLogonInfo.ConnectionInfo.Password = "Password"
      myTable.ApplyLogOnInfo(myLogonInfo)
   Next myTable
Is there any other way? Because every time i load the report it takes about 6 to 7 seconds to load.

But if I preview the report from Crystal IDE it took only 2 seconds.

Thanks.
Répondre
Fil
Voir

Click here to load this message in the networking platform