我目前正在从Web服务中检索Crystal Report中的pdf文档。由于报告中没有参数值,因此服务工作正常。只要我在查询中使用参数,就不能再显示报告,并且检索到'缺少参数值'等错误。但是,只有一个参数,我敢肯定,我设置该参数的值... 这里是我改变/增加值的代码:Web服务中缺少参数
// param is a string like 'parametername:value' string index = param.Split(':')[0]; string value = param.Split(':')[1]; // repDoc is the current Report repDoc.ParameterFields[index].CurrentValues.Clear(); repDoc.ParameterFields[index].CurrentValues.AddValue(value); // now i create the PDF as an HTTPresponse repDoc.ExportToHttpResponse(ExportFormatType.PortableDocFormat, response, false, "Report");
我真的不知道为什么它不工作...
为什么我必须等待48小时接受我自己的答案?嗯......稍后我会接受,但问题解决了我猜^^ – SvenFinke 2009-04-08 08:14:13