Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Crdb_adoplus : Object reference not set to an instance of an
Message
General information
Forum:
ASP.NET
Category:
Reporting
Title:
Crdb_adoplus : Object reference not set to an instance of an
Miscellaneous
Thread ID:
01124503
Message ID:
01124503
Views:
247
I have a report that I'm pushing the data into as a dataset. The data set if built using SP's.
Here is my code.
    Dim orpt As New CrystalDecisions.CrystalReports.Engine.ReportDocument()
    Dim exportOpts As New CrystalDecisions.Shared.ExportOptions()
    Dim diskOpts As New CrystalDecisions.Shared.DiskFileDestinationOptions()

    Dim tempReportFile As String = ""

    Response.ContentType = "Application/pdf"

    orpt.Load("E:\Inetpub\wwwroot\myapp\myreports\test.rpt")

    orpt.SetDataSource(mydataset)

    exportOpts = orpt.ExportOptions

    exportOpts.ExportFormatType = CrystalDecisions.Shared.ExportFormatType.PortableDocFormat
    tempReportFile = "E:\Inetpub\wwwroot\myapp\mytemprpt\tmp_.pdf"

    exportOpts.ExportDestinationType = CrystalDecisions.Shared.ExportDestinationType.DiskFile

    diskOpts.DiskFileName = tempReportFile
    exportOpts.DestinationOptions = diskOpts

    orpt.Export()
I get the following error when it runs the export.
Logon failed.
Details: crdb_adoplus : Object reference not set to an instance of an object.Error in File E:\DOCUME~1\THH2\ASPNET\Local Settings\Temp\test {D5E8D2BD-F376-4D59-8475-CBDE40FB5BD0}.rpt:
Unable to connect: incorrect log on parameters.

Any Clues?

Tia

It's Time to get a gun.

That's what I've been thinkin.

I think I can afford one, If I do a little less Drinkin.

www.TrueGeeks.com
Next
Reply
Map
View

Click here to load this message in the networking platform