I have created a code to export the report to excel and it works.. but when i use the export property of the crystal report viewer, all file format works except for the excel format and I am receiving this kind of message whenever I tried using export property of the crystal report viewer..
"Error in File rpt017 {4742A80B-0356-499C-9B57-BE59A69BD788}.rpt: Invalid export DLL or export format."
any idea? someone?
Request clarification before answering.
I have exactly the same problem.
I have a web app that exports the same .rpt to two formats: PDF and Excel.
When I'm in VS2005 (with CR2008) I'm able to run it with F5 (launching the ASP.NET Development Server) and see both exports working in a url like, say, http://localhost/xpto.aspx
Then I created a virtual directory in IIS, pointing it to the folder where the web application is placed. I opened Internet Explorer and pointed it to the url of the virtual directory (say, http://localhost/CRTest/xpto.aspx). Now, only PDF worked; the Excel export produced the error mentioned in this thread:
Error in File temp_3200f78a-862e-447c-9ac2-25ac0f481248 {F1B60CAC-FDD0-4668-BF7D-8C71AE8F6FBC}.rpt: Invalid export DLL or export format.
Note that the name of the file is random. Also, the xpto.aspx referred above is the SAME file. It happens in the SAME machine - it seems that CR behaves differently when web applications are executed through ASP.NET Dev. Server and IIS. I noted that ASP.NET Dev. Server runs with my user (as it is the user that is running the VS2005) and my user is administrator; IIS runs with Network Service user.
I deduced that it should be a permission issue. So I gave administrator rights to some users I found in my user list, like those of the ASP.NET and so. Also I gave Everyone permissions to the Temp folders where that temp files are placed (I was able to get that paths via File Monitor).
More on the stack trace:
[COMException (0x800002b4):
Error in File temp_3200f78a-862e-447c-9ac2-25ac0f481248 {F1B60CAC-FDD0-4668-BF7D-8C71AE8F6FBC}.rpt:
Invalid export DLL or export format.]
CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext) +0
CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext) +280
[InvalidArgumentException:
Error in File temp_3200f78a-862e-447c-9ac2-25ac0f481248 {F1B60CAC-FDD0-4668-BF7D-8C71AE8F6FBC}.rpt:
Invalid export DLL or export format.]
CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e) +700
CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext) +335
CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext) +680
CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToStream(ExportOptions options) +86
CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToHttpResponse(ExportOptions options, HttpResponse response, Boolean asAttachment, String attachmentName) +89
CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToHttpResponse(ExportFormatType formatType, HttpResponse response, Boolean asAttachment, String attachmentName) +112
MyApp.Xpto.Page_Load(Object sender, EventArgs e) in C:\CRTest\Xpto.aspx.vb:117
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1436
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 10 | |
| 5 | |
| 5 | |
| 5 | |
| 4 | |
| 2 | |
| 2 | |
| 2 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.