Crystal Reports: Error (20535) when printing from VB
Posted on 1998-01-07
Error when printing from a VB application
Win95, VB5, CR6, Access97
When I press the print button in my VB application I get the following message:
SEAGATE CRYSTAL REPORTS: DATABASE ERROR
Error opening file.
File could not be opened: "LTF", at file location: "LTF"
LTF is a table in my Access database. After that, this message appears:
Run-time error '20535':
Unable to connect: incorrect session parameters.
This is because the .rpt file calls a database (.mdb) that doesn't exist, and that's because I moved it (the .mdb) to another location as my customers probably wants to do. So, I need a way to change the location in runtime.
I was reading the KB at Seagate today and found this interresting note:
"A VB application is using Crystal Reports 5.0 witch in turn is connecting to an Access database. The Report1.Datafiles property is used to point to a different database at runtime."
This is exactly the property I need, but it does not exist in CR6! What happened to the DataFiles property? How am I
supposed to change database at runtime without this