The dataset related to that XSD is linked in the C# code and the dll for this is
Then from C# code it is passed to the reports and the report gets generated and can be seen in that report viewer When i enter the parameters in the report viewer screen, then the parameters entered are passed to the C# code through This XML has a section which calls C# code. There is an XML related to this screen which has all details related to this report When i have to view any report i have to select the relevant report,then a screen related to that report appears forĮntering parameters for that report. The reports present in that application are build using Crystal Reports. ReportDocument myReport = new ReportDocument() I have a XML file related to this XSD file. I have created a crystal report with the report fields coming from XSD file. ORpt.SetDataSource(dsReport.Tables("PROC_AMA_GET_BARGE_SELECTED_COMMODITY_REPORT")) When I try to export the displayed report, using the Export button of the report viewer, I get an error "Logon Failed".Īs this report does not connect to a database, what does this error really mean and how do I overcome itĭim oRpt As New
The report will display and print correctly in the Windows Report Viewer. I have a report that uses a dataset as the data source.
Online/e-mail support is free for 2 incidents if you register your product. The best option might be to try the Business Objects technical support team: I tried another way also, i have viewed the report and tried to export the report from the Crystal Report Viewer. The code what i have written is the same. When we export the report using the ReportDocument we are getting the error. Here we there are two scenarios, from the ReportDocument we can export the report and second one is we can view the report using Report Viewer and we can export the report from the viewer. If the report is viewing properly in the Crystal Report viewer it should also export properly using the viewer's export button. I would try removing your exporting code and then trying the app again. Where did you place the code from your postĬlicking on the export button in the Crystal Reports viewer should kick off our default behaviour. But when i click on Export button in the Crystal Report viewer tool bar, i am getting Logon failed error.Ĭ diskOpts = new () Ĭ exportOpts = new () ĮxportOpts.ExportFormatType = ĮxportOpts.ExportFormatType = ĮxportOpts.ExportFormatType = ĮxportOpts.ExportFormatType = ĮxportOpts.ExportFormatType = 40 ĮxportOpts.ExportDestinationType = ĭiskOpts.DiskFileName = sdlgFile.FileName ĮxportOpts.DestinationOptions = diskOpts I am able to see the output of the report. We are designing the reports with XSD files, and getting the dataset from the database and assign to the crystal reprots ReportDocument.Datasource. Here we are getting data from the database and passing the dataset to the crystal reports. Posted: Crystal Reports for Visual Studio, Crystal Report Export Error from the Report Viewer Index ‹ Visual Studio ‹ Crystal Reports for Visual Studio Crystal Report Export Error from the Report Viewer