Crystal Reports :: Access Font Color Formula From Code?
Jul 13, 2010Access font color formula from asp.net code
View 3 RepliesAccess font color formula from asp.net code
View 3 Replieshow can i get and set crystal report formula fields from c# code behind, i use this code, double sum=reportdocument.datadefinision.formulafields[1].text but it get formula text not value
View 2 Replies am using crystal reports and directly exporting it to pdf. I want to filter records based on record selection formula but below mentioned code is not filtering data for particular employee. All records are coming to pdf. I want only selected records based on selection formula.
ReportDocument report = new ReportDocument();
string ReportPath = Server.MapPath("Reports/PayRollReport.rpt").ToString();
report.Load(ReportPath);
[code]...
"SELECT * FROM details where UserName = '" & name.Text &
"' and Date1 between CDate('" & date1 &
"') And CDate('" & date2 &
"')"
can any one help convert it into crystal report selection formula
in my project iam providing users to send sms acrooss india..in admin panel the admin have a feature to check the usersent sms details on the basis of userid.. when admin selects the userid then corresponding send sms details are details are displaying.. my requirement is generating the crystal report for that table..the users are displaying from one table and sent sms details are displaying detaials from another table.. how to generatye crystal report for that..and how to give formula fields in crystal reports
View 1 RepliesI'm doing a report that includes blocks of text. The block of text that is inserted into the report is determined using a formula.
I want to indent the first line (similar to writing a letter) of the text. Can anyone let me know how to program this into the formula. I'm looking for something similar to the Bold (<b>), underline (<u>), or hard return (<BR>) codes that are used with HTML format.
I'm sorting the Crystal Report (2008) programmatically:
FieldDefinition fdSortField = rpt.Database.Tables[0].Fields[ddlSort.SelectedItem.Value];
rpt.DataDefinition.SortFields[0].Field = fdSortField;
if (rbSort.SelectedIndex==0)
{
rpt.DataDefinition.SortFields[0].SortDirection = CrystalDecisions.Shared.SortDirection.AscendingOrder;
}
else
{
rpt.DataDefinition.SortFields[0].SortDirection = CrystalDecisions.Shared.SortDirection.DescendingOrder;
}
(the user selects the sort field from the Dropdown list ddlSort and the sort direction from the Radiobutton list rbSort).
This works fine, the only problem is that this doesn't work for the formula fields, because they are not part of the database. However, since it is possible to set the sort order by the formula field in design time, it should be possible to do this programmatically.
I need to concatenate address string. Is it better to concatenate using the formula field or concatenate in the Sql query itself? which one would be faster?
View 1 RepliesI tried using this and am concatenating the fields together. It does not appear to be working. Here's what I have.
View 7 RepliesI need to pass some data from text box ( ie dump from textbox ) to crystal report how can ido it using formula field in c# i have textbox1.text="INDIA" how do i display the value from textbox in crystal rpeort using formula field.
View 1 RepliesI'm trying to generate crystal report based on the two dates selected by the user ... the selection formula editor gives me
the error "a string is required" when I want to save and close my formula , can any1 help me whts wrong with my formula shown below ,
{records.entrance_date} >= {?entrance_date} and {records.entrance_date} <= {?entrance_date2}
both ?entrance_date and ?entrance_date2 are of date data type
using vb.net 2005 and crystal reports.
I have a typed dataset that is displaying an image using an iBlobFieldObject on a report. I need to use a crystal report formula field to hide the image when the value is null, does anyone know how to do this?
CrystalReportViewer1.ReportSource = null;
dsHeader = objUtility.GetDataSet("ssp_GetBind_PrescriptionReport", Session["ReportID"].ToString(), Session["USER_CMP"].ToString());
if (dsHeader.Tables[0].Rows.Count != 0)
{
[Code]....
I have used this code to fetch data from database into dataset & assigned it to Crystal Report
and then i'm converting it to PDF file for Displaying in browser.
My crystal report is Showing Marathi Font But same data on PDF is not displayed in marathi format.
I have a web application that has a report. I export this report as PDF and send it to the client. On this report I have a field that has a font set to a non-standard windows font (i.e. a barcode font). The barcode font is a TTF font. On my dev machine, I installed the font, printed the report, barcode was displayed.
On the server, I have installed the font, but when printing it, it seems to have reverted back to the Arial font. This is using the version of Crystal supplied with VS2008. I have un-installed and re-installed the font.
My web app is using Framework 2.0. I have one Master page and a Detail page that contains a Crystal Report Viewer. The report source is loaded via a dataset.
Here's the lowdown. I have a field (TeacherName) that is in a group header and in the detail. The one that is in the group header has a background color of Yellow. Customer asked me to try another color, so we put in Orange. They decided they didn't like it, so I switched back to Yellow.
When I load the report, the background color of the TeacherName field is Yellow in the Group Header and transparent in the Detail section. Working as planned.
When I navigate to another page using the Prev and Next buttons, the TeacherName field is Yellow in the Group Header and transparent in the Detail section. Working as planned.
When I navigate to another page by clicking on a Group Name in the Group Tree, the TeacherName field changes to the Orange color we temporarily tried. The detail remains transparent as it should. If I go back and click on the Prev/Next buttons, it goes back to Yellow.
When i run the application locally it works fine but when i publish it n access from it it gives the error asEither the Crystal Reports registry key permissions are insufficient or the Crystal Reports runtime is not installed correctly.
View 2 RepliesI have a Cystal Report with Group field "category". I want to enable/disable grouping in crystal report from code behind.I want to do something like this
[Code]....
Acually user will decide if grouping is required or not by clicking on checkbox
I want simple jquery color picker for font(text) color selection not specific to particular textbox but to all txt boxes on form and must for font color selection not for background color .Simple color picker should like layout color selection.i want color[URL]
View 3 RepliesI'm new to Visual Studio.NET . I need to integrate the crystal reports into an ASP.NET application. I generated Crystal report with the help of crystal report XI developer edition(Stand alone version and NOT from the one which comes from visual studio).
How to integrate this report with the web application.
We have quite a few reports which were developed earlier in Crystal Reports 8.5. We are now planning to use these reports in our web application developed in VS 2008 (C#).
What dlls are needed for calling 8.5 in the application and how should they be added to the application while shipping it to the client?
They are also struggling to get the code running. Would also need the code to call the report with parameters.
How to Code for genereate Crystal Reports.
View 2 RepliesI have some background in writing reports for Win32 programs using VS 2008. I now have to write a report (which will actually be a billing statement) in ASP.Net. The data for the report will be on an MSSQL server either 2005 or 2010. My question is what is the best way to access that data. I assume there are different methods for doing this. My experience is pretty much confined to ADO net, but I am open to anything that may be better
View 1 RepliesI have already generated crystal reports but i've made them static. but now i want to make the user to select the criteria for generating the reports. for eg., in one of them i want to show monthwise data so user should be able to select the month and year and that would be passed as parameter and compared to the existing data. provide me with proper exact code that can be used for giving parameters in such a report using C#.
View 3 RepliesIn my system Visual studio 2008 with sp1 and Crystal Reports XI Release 2.In Visaul studio 2008 ,while adding add reference it showing crystal reports version 10 instead of 11.How to solve the version problem.
View 1 RepliesI am considering using Crystal Report 2008 as my tool of creating reports on my webpage.The only problem which I'm facing is that I have no control of the remote server which hosts my site (besides uploading files). I can't run a MSI to deploy the CR runfiles.I can't find anywhere in the CR user manual of how to deploy the runtime files without running the msi, and I'm not even sure it's possible.Have anyone deployed CR 2008 without running the MSI and without having to register any files?
View 8 Replies