Wrox Programmer Forums
|
Crystal Reports General discussion about Crystal Reports. For discussions specific to the book Professional Crystal Reports for VS.NET, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Crystal Reports 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 February 17th, 2006, 05:46 AM
Registered User
 
Join Date: Feb 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Crystal Report

Hello friends,
              i am using asp.Net and using crystal report when i connct it with webform then it display the error logon fail i try to many code which is provide on net but it not works.

 here i want to tell u that i am using Sql server but i didn't give any userid and password in sql server.

and i am writing this code

 Dim rptdaily As New cryst()
        Dim myTable As New ConnectionInfo()
        Dim mylogin As CrystalDecisions.Shared.TableLogOnInfos
        Dim loginfo As New TableLogOnInfo()
        Dim tble As Table
        Dim tbles As Tables
        Dim repdoc As New ReportDocument()
        repdoc.Load(Server.MapPath("cryst.rpt"))
                With myTable
            .ServerName = "local"
            .DatabaseName = "TB"
                   End With
        tbles = repdoc.Database.Tables
        For Each tble In tbles
            loginfo = tble.LogOnInfo
            loginfo.ConnectionInfo = myTable
            tble.ApplyLogOnInfo(loginfo)

    Next
        CrystalReportViewer1.ReportSource = repdoc






CrystalDecisions.CrystalReports.Engine.LogOnExcept ion: Logon failed.


[LogOnException: Logon failed.]
   .K(String 
, EngineExceptionErrorID  )
   .F(Int16 , Int32 )
   .E(Int16 )
   CrystalDecisions.CrystalReports.Engine.FormatEngin e.GetPage(PageRequestContext reqContext)
   CrystalDecisions.ReportSource.LocalReportSourceBas e.GetPage(PageRequestContext pageReqContext)
   CrystalDecisions.Web.ReportAgent.v(Boolean `)
   CrystalDecisions.Web.CrystalReportViewer.OnPreRend er(EventArgs e)
   System.Web.UI.Control.PreRenderRecursiveInternal() +62
   System.Web.UI.Control.PreRenderRecursiveInternal() +125
   System.Web.UI.Control.PreRenderRecursiveInternal() +125
   System.Web.UI.Page.ProcessRequestMain() +1488



Raj





Similar Threads
Thread Thread Starter Forum Replies Last Post
simple report and crystal report in vb.net saket123 .NET Framework 2.0 0 August 13th, 2008 06:55 AM
VS 2002 Crystal Report opens Seagate crystal 8 tusis_1 Crystal Reports 0 May 12th, 2007 11:45 AM
Crystal Report in C# 2.0 sh.rajkumar C# 0 August 18th, 2006 11:33 PM
Crystal report help Samk Crystal Reports 2 October 13th, 2004 10:11 AM
Error While printing report (Crystal report) vikaspaweb Pro VB 6 0 March 8th, 2004 09:53 AM





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