Hello:
I am using ASP and Crystal report. I created a .rpt file on a dev server and I can access the report in pdf format using ASP.
But now I want to implement the same on production server. I copied the .rpt file and changed the database settings. The preview pane shows the new data. But when I call the report from ASP and convert it to pdf I get nothing. Just the report heading and no rows get selected.
I know there is data in the database, and I confirm that the db connection is ok.
Any clues?
Also why do we specify the
Set crtable = session("oRpt").Database.Tables.Item(1)
crtable.SetLogonInfo CStr(databaseServer), CStr(databaseTables), CStr(databaseUser), CStr(databasePassword)
in the ASP, when we have to specify the same credentials in the rpt file as well?
Is is adviced to save the report with data or without?
Your help will be greatly appreciated.
ThanksThe report is not to be saved with that data.If u save the report with the data the data will be not be refreshed each time while opening the report.
Set crtable = session("oRpt").Database.Tables.Item(1)
crtable.SetLogonInfo CStr(databaseServer), CStr(databaseTables), CStr(databaseUser), CStr(databasePassword)
These lines are written so that the report can log on to the data server.|||Hi
Iam going to include a crpt report in our existing asp application.
I dont have any idea to code for how to call and use crpt in asp file.
Pls, any one give me sample codings for the same.
mail id saravanakumar77@.yahoo.com
regards
Saravanakumar.D
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment