The strange thing is that this happens inconsistently..I'll look into the dll issue, The code is the code in the asp page to set the export options, not sure if this could be an issue at all?
Set ExportOptions = oRpt.ExportOptions
if (instrrev (outputfname,".pdf", -1, 1) > 0) then
ExportOptions.FormatType = CREFTPORTABLEDOCFORMAT
ExportOptions.PDFExportAllPages = TRUE
ExportOptions.DestinationType = CREDTDISKFILE
Response.ContentType = "application/pdf"
elseif (instrrev (outputfname,".doc", -1, 1) > 0) then
ExportOptions.FormatType = CREFTWORDFORWINDOWS
ExportOptions.PDFExportAllPages = TRUE
ExportOptions.DestinationType = CREDTDISKFILE
Response.ContentType = "application/msword"
elseif (instrrev (outputfname,".xls", -1, 1) > 0) then
ExportOptions.FormatType = CREFTEXCEL70
ExportOptions.PDFExportAllPages = TRUE
ExportOptions.DestinationType = CREDTDISKFILE
Response.ContentType = "application/msexcel"
else
Response.Write "File type not supported"
Response.End
end if