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

Printing Server name/database on page footer

Status
Not open for further replies.

dyan24

Technical User
Sep 7, 2004
56
CA
How do i print on the footer page the server name & database name of my report?

e.g.
Environment: Devt/db_name
 
Assuming you're using SQL Server, and you're not using a stored procedure to get your data, create a SQL Expression field with this text:
[tt]
@@servername + '/'+ db_name()
[/tt]
If you are using a stored procedure, you might have to do this in an unlinked subreport, or return it from the procedure as part of your result set.

-dave
 
You might be able to create a SQL Expression to do this, however you'll need to learn what version of Crystal you intend to use and that it supports SQL Expressions, and what type of database you're using and the syntax for returning this information from the database as Crystal doesn't have this functionality.

-k
 
I am using Crystal Report v10 and SQL Server.

Unfortunately i have some reports that are using SP. Also, we want to add this in our report template. Is this possible?

Thanks k & dave!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top