TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Aur
NA
8k
0
Crystal Report Export - Database Logon Failed
Dec 10 2007 10:31 AM
Below is my code in VB.Net. I am using PUSH method to populate my data. I use Crystal Report and VS 2003. I am trying to export a
crystal
report
to a PDF. I am getting a database log on error. Please help!!!
----------------------------------------------
Try
Dim oStream As New MemoryStream
Me.crpt_numIssues.ExportToStream(ExportFormatType.PortableDocFormat)
Response.Clear()
Response.Buffer = True
Response.ContentType = "application/pdf"
Response.BinaryWrite(oStream.ToArray())
Response.End()
Catch ex As Exception
Dim mgsText As String
mgsText = "ERROR: An error occured. <br>" + ex.ToString
Me.ShowErrorPanel(mgsText)
End Try
------------------------------
The error is:
CrystalDecisions.CrystalReports.Engine.LogOnException: Database logon failed. ---> System.Runtime.InteropServices.COMException (0x8004100F): Database logon failed. at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext) at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)
Reply
Answers (
1
)
Printing page header
Export Large no of data from the crystal report to pdf file