views:

3

answers:

0

Hi, Im develop an application and while I want to generate a report using Crystal Report, it shows error Invalid TLV Record. Below is my script :

Dim CrApp As CRAXDRT.Application
Dim CrRep As CRAXDRT.Report

Set CrApp = New CRAXDRT.Application
Set CrRep = CrApp.OpenReport("C:\test\Report1.rpt")
CrRep.DiscardSavedData

The error appears at line "Set CrRep = CrApp.OpenReport("C:\test\Report1.rpt")"

Ive been search through google and might be refer to path or dll files.

I dont have any idea with this.

Can someone help me pls? thx in advance!