Wrox Programmer Forums
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 29th, 2007, 03:17 PM
Registered User
 
Join Date: Nov 2007
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
        Next


    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.







Similar Threads
Thread Thread Starter Forum Replies Last Post
Crystal Reports 8 second login liam8611 Classic ASP Basics 0 July 23rd, 2007 08:32 AM
Crystal Reports - DataBase Login - C# aranhamarvel C# 0 April 11th, 2007 02: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 12:57 AM
crystal reports .net designer login failed error dilshan Crystal Reports 3 September 23rd, 2004 01:38 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.