Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Wrox's Visual Basic 2005 Express Edition Starter Kit ISBN: 978-0-7645-9573-8
This is the forum to discuss the Wrox book Wrox's Visual Basic 2005 Express Edition Starter Kit by Andrew Parsons; ISBN: 9780764595738
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Wrox's Visual Basic 2005 Express Edition Starter Kit ISBN: 978-0-7645-9573-8 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Display Modes
  #1 (permalink)  
Old November 29th, 2007, 03:17 PM
Registered User
Join Date: Nov 2007
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to masterlixx
Default crystal reports and database login

i am developing an application and trying to have my application send the database logon so the report does not prompt me. im using visual studio 2005 and crystal reports devloper XI SP 2 this is my code

    Private Sub configurecrystalreports()
        Dim myConnectionInfo As CrystalDecisions.Shared.ConnectionInfo = New CrystalDecisions.Shared.ConnectionInfo()
        myConnectionInfo.ServerName = "xxx"
        myConnectionInfo.DatabaseName = "yyy"
        myConnectionInfo.UserID = "zzzz"
        myConnectionInfo.Password = "wwww"
        Dim reportpath As String = Application.StartupPath & "\" & "statement.rpt"
        crv1.ReportSource = reportpath
        Dim myTableLogOnInfos As CrystalDecisions.Shared.TableLogOnInfos = crv1.LogOnInfo

        For Each myTableLogOnInfo As CrystalDecisions.Shared.TableLogOnInfo In myTableLogOnInfos
            myTableLogOnInfo.ConnectionInfo = myConnectionInfo

    End Sub

now i get a load report failed, then prompted for the database logon, then another load report failed and finally the report will display in my viewer. The report does contain a subreport, as well the report main and subreport each use a view to get data, all in the same database.

Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Crystal Reports 8 second login liam8611 Classic ASP Basics 0 July 23rd, 2007 09:32 AM
Crystal Reports - DataBase Login - C# aranhamarvel C# 0 April 11th, 2007 03:16 PM
Newbie Crystal Reports Login redbull8vodka Crystal Reports 0 January 19th, 2007 07:25 AM
login window comes in crystal reports nilesh_parmar BOOK: Professional Crystal Reports for VS.NET 2 October 15th, 2004 01:57 AM
crystal reports .net designer login failed error dilshan Crystal Reports 3 September 23rd, 2004 02:38 PM

All times are GMT -4. The time now is 01:19 AM.

Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.