Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > Crystal Reports
|
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 28th, 2006, 07:37 AM
Authorized User
 
Join Date: Jan 2006
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default logon error while exporting crystal report

 iam having problem exporting the crystal report from my .aspx page.
first iam displaying the crystal report in .aspx page.from tha t page iam exporting it to a pdf file.i have provided a button to export the report to a pdf file.
the problem is coming in exporting the report to pdf file
iam getting logon error i.e
CrystalDecisions.CrystalReports.Engine.LogOnExcept ion: Logon failed.


the code for export button is

Dim myReport As New Employee()



        Dim strExportFile As String
        Dim objExOpt As ExportOptions
        Dim objDiskOpt As New DiskFileDestinationOptions()

        strExportFile = "c:\jobs4hunt.pdf"

        objDiskOpt.DiskFileName = Server.MapPath(".") & "/export/" & strExportFile
        objExOpt = myReport.ExportOptions
        objExOpt.ExportDestinationType = ExportDestinationType.DiskFile
        objExOpt.ExportFormatType = ExportFormatType.PortableDocFormat
        objExOpt.DestinationOptions = objDiskOpt
        myReport.Export()
        myReport.Close()


any idea what is wrong.help me out.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Database logon problem with Crystal Report jaucourt Crystal Reports 6 September 25th, 2009 11:39 AM
Logon Problem using Crystal Report and Asp.net ??? charles Crystal Reports 13 March 1st, 2007 02:49 PM
Crystal Report Logon failed mrleaps ASP.NET 1.0 and 1.1 Professional 1 October 13th, 2005 01:06 PM
Crystal Report: 20536: Unable to logon server caryraleigh Pro VB 6 0 December 4th, 2004 10:38 AM
Logon failed... exporting crystal reports into pdf JerBlur VB.NET 0 July 23rd, 2004 02:00 AM





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