Hi friends
I am getting an error while using the Crystal reports with asp.net..pls give me a idea whats my mistake...
my file path is c:\anand\crysrep2" and there is a report in that path named as report.rpt..i am exporting the report as .pdf..i am getting the logon failed error...
i am using the following code
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim myReport As Report2 = New Report2()
Dim DiskOpts As CrystalDecisions.Shared.DiskFileDestinationOptions = New CrystalDecisions.Shared.DiskFileDestinationOptions()
myReport.ExportOptions.ExportDestinationType = CrystalDecisions.[Shared].ExportDestinationType.DiskFile
myReport.ExportOptions.ExportFormatType = CrystalDecisions.[Shared].ExportFormatType.PortableDocFormat
DiskOpts.DiskFileName = "c:\Output.pdf"
myReport.ExportOptions.DestinationOptions = DiskOpts
myReport.Export()
End Sub
error is:
Server Error in /anand/cryrep2 Application.
--------------------------------------------------------------------------------
Logon failed.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: CrystalDecisions.CrystalReports.Engine.LogOnException: Logon failed.
Source Error:
Line 103: DestinationOptions property to point to the
Line 104: DiskFileDestinationOption object.
Line 105: myReport.Export()
Line 106:
Line 107: This statement exports the report based on the previously set properties.
Source File: C:\anand\cryrep2\WebForm1.aspx.vb Line: 105
pls give me a idea what mistake i did...
Thanks
Satya
gummadi009@yahoo.com
gummadilli@hotmail.com
I am getting an error while using the Crystal reports with asp.net..pls give me a idea whats my mistake...
my file path is c:\anand\crysrep2" and there is a report in that path named as report.rpt..i am exporting the report as .pdf..i am getting the logon failed error...
i am using the following code
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim myReport As Report2 = New Report2()
Dim DiskOpts As CrystalDecisions.Shared.DiskFileDestinationOptions = New CrystalDecisions.Shared.DiskFileDestinationOptions()
myReport.ExportOptions.ExportDestinationType = CrystalDecisions.[Shared].ExportDestinationType.DiskFile
myReport.ExportOptions.ExportFormatType = CrystalDecisions.[Shared].ExportFormatType.PortableDocFormat
DiskOpts.DiskFileName = "c:\Output.pdf"
myReport.ExportOptions.DestinationOptions = DiskOpts
myReport.Export()
End Sub
error is:
Server Error in /anand/cryrep2 Application.
--------------------------------------------------------------------------------
Logon failed.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: CrystalDecisions.CrystalReports.Engine.LogOnException: Logon failed.
Source Error:
Line 103: DestinationOptions property to point to the
Line 104: DiskFileDestinationOption object.
Line 105: myReport.Export()
Line 106:
Line 107: This statement exports the report based on the previously set properties.
Source File: C:\anand\cryrep2\WebForm1.aspx.vb Line: 105
pls give me a idea what mistake i did...
Thanks
Satya
gummadi009@yahoo.com
gummadilli@hotmail.com