Hello,
i get the following error whileexportinga report. This reportcontainsa single numericparameter "TabID".
What i make wrong ?
Thank youin advance.
[Environment]
Windows 7 x64
Visual Studio 2013 Community Edition
Crystal Reports v13.0.2000.0 for Visual Studio
[Exception]
CrystalDecisions.CrystalReports.Engine.ParameterFieldCurrentValueException was unhandled
HResult=-2147215870
Message=Fehlende Parameterwerte.
Source=CrystalDecisions.ReportAppServer.DataSetConversion
PromptEngineAvailable=false
StackTrace:
bei CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e)
bei CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)
bei CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext)
bei CrystalDecisions.CrystalReports.Engine.FormatEngine.Export(ExportRequestContext reqContext)
bei CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToDisk(ExportFormatType formatType, String fileName)
bei TestCrystalReport.Form1..ctor() in c:\projects\TestCrystalReport\TestCrystalReport\Form1.cs:Zeile 29.
bei TestCrystalReport.Program.Main() in c:\projects\TestCrystalReport\TestCrystalReport\Program.cs:Zeile 19.
bei System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
bei System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
bei Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
bei System.Threading.ThreadHelper.ThreadStart_Context(Object state)
bei System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
bei System.Threading.ThreadHelper.ThreadStart()
InnerException: System.Runtime.InteropServices.COMException
HResult=-2147217394
Message=missing parameter values.
Source=Analysis Server
ErrorCode=-2147217394
StackTrace:
bei CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext)
bei CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)
InnerException:
[SourceCode]
CrystalDecisions.CrystalReports.Engine.ReportDocument ReportDocument=new CrystalDecisions.CrystalReports.Engine.ReportDocument();
string ReportDocumentFilePath = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);
string ReportDocumentExportFilePath=ReportDocumentFilePath + "\\CrystalReport1.pdf";
ReportDocumentFilePath+= "\\CrystalReport1.rpt";
ReportDocument.Load(ReportDocumentFilePath);
ReportDocument.SetParameterValue("TabId",7);
ReportDocument.SetDatabaseLogon("user","password");
ReportDocument.Refresh();
ReportDocument.ExportToDisk(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat, ReportDocumentExportFilePath);