Am New to Crystal Report 8.5
How to print the string value in a date Format?
Example:
dd/mm/yyyy
Where i have to type a formula in the crystal report?
Need Date Separator Formula for String value?
How to create a fromula in crystal report 8.5?
To answer your second question...
To create a formula field in CR 8.5:
Insert Fields->Formula tab->New
in CR 10 and up:
go to the "Field Explorer", right click "Formula Fields", click "New".
or
Report->Formula Workshop->Formula Fields->New
Then you can drag the formula field onto the report.
Create a new formula field to use in the report and use the CSTR or TOTEXT functions for formatting of the date.
You can use the help in the formula editor to look up the CSTR and TOTEXT functions to get the exact format that you want.
Here is a link for something similar. Look at the 2nd answer.
Crystal Reports DateTime Formatting
Related
I have a report in Axosoft's ActiveReports where I declare two variables to store the earliest date and the latest date seen in the report, which are evaluated with each line of the Detail section.
I can put the results in the Report Footer. But, I want this Report Date Range to appear in the Report Header on the first page. Is there any way to do that?
I have done this before in Crystal Reports, but can't see how to do it in ActiveReports.
Thanks for any suggestions.
I'm getting an integer value as 2345 but I want to display it as 234.5
is it possible??
To get what you are looking for in a simple fix is like what kingpin stated above. Divide the value by ten. To do this just create a new formula in crystal by going into your field explorer and right clicking on the formula fields section. Under there should be a option to create a new formula. Then in window that comes up put the field you want to manipulate in the formula and then divide that by ten. And there you go. Now use the formula field in the report instead of the original field.
Here is a example of how it could look.
{Table_Foo.value_Bar} / 10
There is a field property for it. Don't have access to crystal reports at the moment, but I know it's there:
Crystal Report Provides an easy to use default thousand separator for numeric Fields. You can use it by checking Thousand Separator from Field Properties.
If you need a customized separator, check Customized Thousand Separator in Crystal Report.
You also might want to find some tutorials on the Crystal Reports themselves if you still have trouble.
I am doing a crystal report.. In which there is a field Discount I am not getting the sum of that field while right click->Summery->Sum. I am getting other field like OrderAmount... In crystal report all data are coming.But not getting the sum for Discount.It is just showing the count of rows as Discount. Pls help...
Try using formula section of Crystal Report. Create a formula for finding the sum. Use the formula in place of Summary.
It might be look like
Formula=Sum(val({ReportField}). Change the Crystal Syntax to BasicSyntax from dropdownbox on top.
We're developing an existing application with C# 2.0 and Crystal Reports for Visual Studio 2005. The problem is we want to localize the report dynamically. How to achieve it in Crystal Reports 2005?
So if the current culture is "id-ID", I want my report to display "Rp" instead of "$" , and the date format in in Indonesian format.
Assuming you're building these reports in the Report Designer, right-click on each field in question and select Format Field... . Select the date or number tab as appropriate, then click the Customise... button. Each of the properties you would need to change - thousands separator, decimals separator, currency symbol, DMY order, etc. - can be specified by clicking the formula button for that property, and entering an appropriate formula.
Obviously, you will need to have some way for Crystal to determine that the current culture is eg. "id-ID" - I suggest that this should be by passing the culture value to the report as a parameter. (An alternative would be to include a culture column in the report's datasets, but this would leave the culture undefined for datasets with 0 records.)
I think it should be possible to automate all of this through the API.
i have to crystal report made from Dataset,and we have to one formula field
i wrote Add() but that formula field show cancatination like 10+20=1020
i realize they need to convert that field in sight formula how to overcome this one?
anybody help me ?
Advance wishes...
You can try using CStr in the formula
CStr(10)+CStr(20)