Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problems with exporting in HTML viewer

Status
Not open for further replies.

Bruudje

Programmer
Feb 14, 2002
9
NL
Hello,

I'm getting the error message:
Error Occurred Exporting Report: -2147190548 Missing or out-of-date export DLL

It's the first time we use CR8.5 Developer. We don't have/had previous installation of CR. We can see the report, but we can't export. I'm programming in VBScript on ASP pages.

This is my code:
Code:
	filetype = Request.Form("exp")
	filename = session("rapport") & "." & cstr(filetype)
	Set ExportOptions = Session("oRpt").ExportOptions
	Session("oRpt").DisplayProgressDialog = FALSE
	exportfilename = "d:\exports\" & cstr(filename)
	Select Case cstr(filetype)
		case "doc" ExportType = 14
		case "xls" ExportType = 27
		case "rtf" ExportType = 4
		case "pdf" ExportType = 31
		case "rpt" ExportType = 1
	End Select
	ExportOptions.DestinationType = 1
	ExportOptions.DiskFileName = exportfilename
	ExportOptions.FormatType = cint(ExportType)
		
	On Error Resume Next
	Session("oRpt").Export False
	If Err.Number <> 0 Then
		Response.Write &quot;Error Occurred Exporting Report: &quot; & Err.Number & &quot; &quot; & Err.Description
		Set Session(&quot;oRpt&quot;) = nothing
		Set Session(&quot;oApp&quot;) = nothing
		Session.Abandon
		Response.End
	Else
		If IsObject(session(&quot;oPageEngine&quot;)) Then                              
  		set session(&quot;oPageEngine&quot;) = nothing
		End If
		set session(&quot;oPageEngine&quot;) = session(&quot;oRpt&quot;).PageEngine
	End If

In other viewers we can export.

Please help.
Ruud Breukers

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top