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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Export report to PDF - error

Status
Not open for further replies.

cdm1221

Programmer
Jan 26, 2004
32
0
0
US
I've written an executable in VB6 to export a CR 8.5 report to PDF. It works fine on my machine where the VB6 project lies. However, when I try to run the executable on another machine it throws the following error:

-214719854(800473d2): The remaining text does not appear to be part of the formula.

Here is a snippet of the code.

Set crxApp = New CRAXDRT.Application
Set crxReport = crxApp.OpenReport(App.Path & "\" & strReportName)
crxReport.DiscardSavedData
crxReport.Database.Tables(1).SetLogOnInfo "", "", sUser, sPswd

With crxReport.ExportOptions
.DestinationType = crEDTDiskFile
.FormatType = crEFTPortableDocFormat
.DiskFileName = "c:\report.pdf"
End With

crxReport.Export (False)

It appears that the error occurs on the last line. The same error occurs if I set the last line to "true".

Any ideas what's happening?
 
Actually, due to the message you are getting, I would start looking at your formulas in the report. Perhaps you have a UFL reference in a formula, and that UFL is installed on the once box, but not the other.

~Brian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top