LogOnInfo for CR.net repor viewer and VB.net 
Author Message
 LogOnInfo for CR.net repor viewer and VB.net

I have a CR viewer on a form and the following code on
the form load. The tabela.ApplyLogOnInfo(conninfo) seems
to work fine. 1st i didn't know the viewer had a
logoninfo property and i was using only the
tables.applyloginfo method but everytime i tried i got
the windows 'Database Login' to popup everytime and the
password is in blank. So i tried to add this
line 'Me.CrystalReportViewer1.LogOnInfo = conninfo' but i
won't built : 'Value of
Type 'CrystalDecisions.Shared.TableLogOnInfo' cannot be
converted to 'CrystalDecisions.Shared.TableLogOnInfo' !!

Any suggestions , i'm lost...

Another question the report has a the landscape
printoptions set but i press the print button it prints
in portrait !? I have to go to printer properties and
change orientation before printing ... Odd?

Kind Regards
Jorge Cavalheiro

<begin of code>
Private Sub Form1_Load(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles MyBase.Load
Dim conninfo As New CrystalDecisions.Shared.TableLogOnInfo
Dim tabela As CrystalDecisions.CrystalReports.Engine.Table
conninfo.ConnectionInfo.ServerName = "Ares"
conninfo.ConnectionInfo.DatabaseName = "Dinefer"
conninfo.ConnectionInfo.UserID = "gest"
conninfo.ConnectionInfo.Password = "gest"
conninfo.TableName = "planeamento"
conninfo.ReportName = crystalReport11.FilePath

For Each tabela In crystalReport11.Database.Tables

Me.CrystalReportViewer1.LogOnInfo = conninfo

Me.CrystalReportViewer1.ReportSource =

End Sub
<end of code>

Sun, 16 Jan 2005 18:13:54 GMT  
 [ 1 post ] 

 Relevant Pages 

1. cr.NET LogonInfo -- need help pls

2. VS.Net + Cr.Net and VB.Net

3. VB.NET and CR report viewer

4. CR 8.5 viewer not working in VB .NET??

5. Find good book about using CR.NET with VS.NET and .NET Framework

6. Memory not released with vb.net and cr.net

7. CR.Net with VB.Net

8. VB.NET & CR.NET : User Defined Function

9. VB.NET application and CR.NET - Change grouping method at runtime

10. No data when I print from the viewer in CR.Net

11. CR.NET Web Viewer takes too long to display report

12. CR .NET Viewer and exporting


Powered by phpBB® Forum Software