beginnerz
03-26-2009, 11:42 PM
Hi,
I am using crystal report 6.0 and classic asp to generate a report for export purpose.
I have tried in my own pc and server. It works fine in my pc but not in the server.
the error message is as below:
cpeaut32 error '800a5032'
File I/O error.
/Admin/ASPCrystalReport/test/ReportExport.asp, line 120
and the code goes like this:
<%@ LANGUAGE="VBSCRIPT" %>
<%
On Error Resume next
%>
<%
reportname = "Export.rpt"
%>
<!-- #include file="AlwaysRequiredSteps.asp" -->
<%
Set crystalExportOptions = Session("oRpt").ExportOptions
ExportFileName = Session.SessionID & ".rpt"
ExportDirectory = "C:\wwwroot\admin\generated\"
ReportCacheVirtualDirectory = "/admin/generated/"
ExportType = "1"
crystalExportOptions.DiskFileName = ExportDirectory & ExportFileName
' For the ExportType variable, Refer to Developr.hlp
' (ExportOptions Object Formattype attribute) for complete listing of Format Type values.
crystalExportOptions.FormatType = cint(ExportType)
' User the Disk Destination
' Refer to Developr.hlp for complete listing of
' DestinationType values
' (ExportOptions Object)
' Disk = 1
crystalExportOptions.DestinationType = 1
' Do not prompt when exporting
Session("oRpt").Export False
%>
<!-- #include file="MoreRequiredSteps.asp" -->
<!-- #include file="SmartViewerActiveX.asp" -->
<%
response.write err.description
%>
<BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR>
<A HREF="<%=ReportCacheVirtualDirectory & ExportFileName%>">Click Here to Download File</A>
Does anyone faced this problem before?
I am using crystal report 6.0 and classic asp to generate a report for export purpose.
I have tried in my own pc and server. It works fine in my pc but not in the server.
the error message is as below:
cpeaut32 error '800a5032'
File I/O error.
/Admin/ASPCrystalReport/test/ReportExport.asp, line 120
and the code goes like this:
<%@ LANGUAGE="VBSCRIPT" %>
<%
On Error Resume next
%>
<%
reportname = "Export.rpt"
%>
<!-- #include file="AlwaysRequiredSteps.asp" -->
<%
Set crystalExportOptions = Session("oRpt").ExportOptions
ExportFileName = Session.SessionID & ".rpt"
ExportDirectory = "C:\wwwroot\admin\generated\"
ReportCacheVirtualDirectory = "/admin/generated/"
ExportType = "1"
crystalExportOptions.DiskFileName = ExportDirectory & ExportFileName
' For the ExportType variable, Refer to Developr.hlp
' (ExportOptions Object Formattype attribute) for complete listing of Format Type values.
crystalExportOptions.FormatType = cint(ExportType)
' User the Disk Destination
' Refer to Developr.hlp for complete listing of
' DestinationType values
' (ExportOptions Object)
' Disk = 1
crystalExportOptions.DestinationType = 1
' Do not prompt when exporting
Session("oRpt").Export False
%>
<!-- #include file="MoreRequiredSteps.asp" -->
<!-- #include file="SmartViewerActiveX.asp" -->
<%
response.write err.description
%>
<BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR>
<A HREF="<%=ReportCacheVirtualDirectory & ExportFileName%>">Click Here to Download File</A>
Does anyone faced this problem before?