Table password - strange!
Hi all,
I have this problem, and I don't understand!!!
I have Delphi 5 and ReportBuilder 5.5.
I create a programa with database in paradox, and this tables have password.
I put Session.AddPassword('*******') and the program works fine.
Then, about report, in one form I put a Pipeline and a ppReport, I connect
Pipeline to a table, make the report, I preview in Delphi 5, looks fine!
Then I execute the aplication and, before enter, show a messagebox to enter
table password?!!!!
Strange!!,
I remove the report, and the application works fine, without question for
table password?!!
Any explication?
Thanks in advance.
Regards,
Logout
PS: Sorry my poor english.
I have this problem, and I don't understand!!!
I have Delphi 5 and ReportBuilder 5.5.
I create a programa with database in paradox, and this tables have password.
I put Session.AddPassword('*******') and the program works fine.
Then, about report, in one form I put a Pipeline and a ppReport, I connect
Pipeline to a table, make the report, I preview in Delphi 5, looks fine!
Then I execute the aplication and, before enter, show a messagebox to enter
table password?!!!!
Strange!!,
I remove the report, and the application works fine, without question for
table password?!!
Any explication?
Thanks in advance.
Regards,
Logout
PS: Sorry my poor english.
This discussion has been closed.
Comments
Try using a TDatabase component to configure the connection parameters. Set
TDatabase.LoginPrompt to True/False as desired.
Connect all Tables/Query components to the TDatabase component.
This provides simple control over login/logout.
The DBPipeline component has an OpenDataSource boolean property that can set
to control whether the Pipeline's Open method opens the dataset. If you set
this property to False, then you need to open the datasets prior to calling
Report.Print.
--
Nard Moseley
Digital Metaphors
http://www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Thanks for your fast response.
I discover the problem! I have table closed (in a Datamodule), but when I
create the report and preview the output, RB opens the table. I compiled and
test, and the messagebox requesting table password appears.
The solution, is re-close the table before compiler.
Thanks for your sugestions.
Regards,
Logout