Print Page | Close Window

Printing the Date Parameters

Printed From: Crystal Reports Book
Category: Crystal Reports for Visual Studio 2005 and Newer
Forum Name: Report Design
Forum Discription: The best way to design a report and problems you have encountered
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=19564
Printed Date: 04 Apr 2025 at 10:17pm


Topic: Printing the Date Parameters
Posted By: Minco
Subject: Printing the Date Parameters
Date Posted: 22 May 2013 at 11:10am
I have a report of rebate information and it has a date paratmeter set up for the user to input the start and end date [includes date selected] ... 1/1/2013 to 3/31/2013.
 
When the report prints, I would like the date parameter from the user, to print in the header next to the report title.
 
Rebate Report        1/1/2013 thru 3/31/2013          [today's date]
 
How do I get the parameter to print? I'm sure it involves a text box with the field in it but I can't get it to work.... it just prints the name of the field.

Thanks much!
Minco


-------------
Be kind to those less fortunate.



Replies:
Posted By: Minco
Date Posted: 23 May 2013 at 9:05am

I solved my own question. I created a formula called PrintParam and used this formula:

Totext(Minimum ({?InvoiceDate}),"MM-dd-yyyy") +

" to " +

Totext(Maximum ({?InvoiceDate}),"MM-dd-yyyy")

 
I inserted the formula field in the page header where i wanted it, and it's been working beautifully!


-------------
Be kind to those less fortunate.



Print Page | Close Window