You can pass parameter values to a crystal report programmatically using ReportDocument.DataDefinition.ParameterFields member, which represents a collection of parameters associated with a report.
Before you use ParameterFields, you must import CrystalReport.Engine namespace by adding the following line to your code:
- Imports CrystalDecisions.CrystalReports.Engine
In my report, I have two parameters called ParameterName1 and ParameterName2 and I want to pass values as "Parameter1Value" and "Parameter2Value" respectively. If you have more than 2 parameters, just repeat the same steps between "START" and "END" commented lines. Also, read the comments in the code carefully.
- ' Create a report instance. This is the class added to your project
- ' when you added the report to the project
- Dim report As MyReport = New MyReport
- ' Fill data in DataSet here. Skip this step if your report is calling
- ' a stored procedure direct
- Dim ds As DataSet = New DataSet
- ' ds = GetDataFromDatabase()
- Dim crParameterDiscreteValue As ParameterDiscreteValue
- Dim crParameterFieldDefinitions As ParameterFieldDefinitions
- Dim crParameterFieldLocation As ParameterFieldDefinition
- Dim crParameterValues As ParameterValues
- '
- ' Get the report parameters collection.
- '
- crParameterFieldDefinitions = report.DataDefinition.ParameterFields
- ' Add a parameter value - START
- crParameterFieldLocation = crParameterFieldDefinitions.Item("@ParameterName1")
- crParameterValues = crParameterFieldLocation.CurrentValues
- crParameterDiscreteValue = New CrystalDecisions.Shared.ParameterDiscreteValue
- crParameterDiscreteValue.Value = "Parameter1Value"
- crParameterValues.Add(crParameterDiscreteValue)
- crParameterFieldLocation.ApplyCurrentValues(crParameterValues)
- ' Add a parameter value - END
- crParameterFieldLocation = crParameterFieldDefinitions.Item("@ParameterName2")
- crParameterValues = crParameterFieldLocation.CurrentValues
- crParameterDiscreteValue = New CrystalDecisions.Shared.ParameterDiscreteValue
- crParameterDiscreteValue.Value = "Parameter2Value"
- crParameterValues.Add(crParameterDiscreteValue)
- crParameterFieldLocation.ApplyCurrentValues(crParameterValues)
- '
- ' Set report's DataSource. Skip this step if your report is calling a
- ' stored procedure direct in the report.
- '
- report.SetDataSource(ds)
- '
- ' Set CrystalReportViewer.ReportSource
- '
- CrystalReportViewer1.ReportSource = report

Mansoor AnwarPosted Aug 1, 2015, 6:44 AM
string path = string.Empty; path = Environment.CurrentDirectory + "\\DAILYITEMWISESALEREPORT.rpt"; ReportDocument crystalReport = new ReportDocument(); # region /* // Not Working this paraments ParameterField paramField = new ParameterField(); ParameterFields paramFields = new ParameterFields(); ParameterDiscreteValue paramDiscreteValue = new ParameterDiscreteValue(); paramField.Name = "@rvno"; paramDiscreteValue.Value = ""; paramField.CurrentValues.Add(paramDiscreteValue); paramFields.Add(paramField); paramField.Name = "@StoreName"; paramDiscreteValue.Value = ""; paramField.CurrentValues.Add(paramDiscreteValue); paramFields.Add(paramField); paramField.Name = "@StoreNameFin"; paramDiscreteValue = new ParameterDiscreteValue(); paramDiscreteValue.Value = ""; paramField.CurrentValues.Add(paramDiscreteValue); paramFields.Add(paramField); paramField.Name = "@FromCode"; paramDiscreteValue = new ParameterDiscreteValue(); paramDiscreteValue.Value = ""; paramField.CurrentValues.Add(paramDiscreteValue); paramFields.Add(paramField); paramField.Name = "@ToCode"; paramDiscreteValue = new ParameterDiscreteValue(); paramDiscreteValue.Value = ""; paramField.CurrentValues.Add(paramDiscreteValue); paramFields.Add(paramField); paramField.Name = "@FromDate"; paramDiscreteValue = new ParameterDiscreteValue(); paramDiscreteValue.Value = "07-01-2001"; paramField.CurrentValues.Add(paramDiscreteValue); paramFields.Add(paramField); paramField.Name = "@ToDate"; paramDiscreteValue = new ParameterDiscreteValue(); paramDiscreteValue.Value = "07-01-2016"; paramField.CurrentValues.Add(paramDiscreteValue); paramFields.Add(paramField); crystalReportViewer1.ParameterFieldInfo = paramFields; //crystalReport.ParameterFields = paramFields; // crystalReport.ParameterFields = crystalReportViewer1; */ #endregion ParameterFieldDefinitions crParameterFieldDefinitions; ParameterFieldDefinition crParameterFieldDefinition; ParameterValues crParameterValues = new ParameterValues(); ParameterDiscreteValue crParameterDiscreteValue = new ParameterDiscreteValue(); crystalReport.Load(path); crParameterDiscreteValue.Value = "abc"; crParameterFieldDefinitions = crystalReport.DataDefinition.ParameterFields; crParameterFieldDefinition = crParameterFieldDefinitions[0]; crParameterValues = crParameterFieldDefinition.CurrentValues; crParameterValues.Clear(); crParameterValues.Add(crParameterDiscreteValue); crParameterFieldDefinition.ApplyCurrentValues(crParameterValues); crParameterDiscreteValue.Value = ""; crParameterFieldDefinitions = crystalReport.DataDefinition.ParameterFields; crParameterFieldDefinition = crParameterFieldDefinitions[1]; crParameterValues = crParameterFieldDefinition.CurrentValues; crParameterValues.Clear(); crParameterValues.Add(crParameterDiscreteValue); crParameterFieldDefinition.ApplyCurrentValues(crParameterValues); crParameterDiscreteValue.Value = ""; crParameterFieldDefinitions = crystalReport.DataDefinition.ParameterFields; crParameterFieldDefinition = crParameterFieldDefinitions[2]; crParameterValues = crParameterFieldDefinition.CurrentValues; crParameterValues.Clear(); crParameterValues.Add(crParameterDiscreteValue); crParameterFieldDefinition.ApplyCurrentValues(crParameterValues); crParameterDiscreteValue.Value = ""; crParameterFieldDefinitions = crystalReport.DataDefinition.ParameterFields; crParameterFieldDefinition = crParameterFieldDefinitions[3]; crParameterValues = crParameterFieldDefinition.CurrentValues; crParameterValues.Clear(); crParameterValues.Add(crParameterDiscreteValue); crParameterFieldDefinition.ApplyCurrentValues(crParameterValues); crParameterDiscreteValue.Value = ""; crParameterFieldDefinitions = crystalReport.DataDefinition.ParameterFields; crParameterFieldDefinition = crParameterFieldDefinitions[4]; crParameterValues = crParameterFieldDefinition.CurrentValues; crParameterValues.Clear(); crParameterValues.Add(crParameterDiscreteValue); crParameterFieldDefinition.ApplyCurrentValues(crParameterValues); crParameterDiscreteValue.Value = "07-01-2001"; crParameterFieldDefinitions = crystalReport.DataDefinition.ParameterFields; crParameterFieldDefinition = crParameterFieldDefinitions[5]; crParameterValues = crParameterFieldDefinition.CurrentValues; crParameterValues.Clear(); crParameterValues.Add(crParameterDiscreteValue); crParameterFieldDefinition.ApplyCurrentValues(crParameterValues); crParameterDiscreteValue.Value = "08-01-2015"; crParameterFieldDefinitions = crystalReport.DataDefinition.ParameterFields; crParameterFieldDefinition = crParameterFieldDefinitions[6]; crParameterValues = crParameterFieldDefinition.CurrentValues; crParameterValues.Clear(); crParameterValues.Add(crParameterDiscreteValue); crParameterFieldDefinition.ApplyCurrentValues(crParameterValues); crystalReport.Load(path); crystalReport.SetDatabaseLogon("aa", "abc"); crystalReport.ExportToDisk(ExportFormatType.PortableDocFormat, "D:\\itemwise.pdf"); //if you want ot export //crystalReportViewer1.ReportSource = crystalReport; ReportViewer rv = new ReportViewer(); // If you want to Show report rv.ShowReport(crystalReport); rv.ShowDialog();
Mahesh ChandPosted Feb 13, 2013, 10:15 AM
Jesse, technically code is same. All you have to do is, convert it to C#.
JessePosted Feb 8, 2013, 10:58 PM
Thanks, but I'm looking for help in C#! This VB example is posted under Crystal Reports C# on c-sharpcorner.com
norman_uyPosted Feb 16, 2011, 4:46 AM
Hello Mahesh, Thanks, it helped. I can now see the value i passed into the report. Now, I have a problem when using this in the 'Add command' when I call a query like: Select *from categories where categoryid={?@catid} => error: No value given for one or more required parameters Select * from categories where categoryid IN ({?@catid}) => error: No value given for one or more required parameters Select *from categories where categoryid='{?@catid}' => No results returned Can you tell me how to use this parameter from the 'Add Command' module? Thanks and regards, Norman
mazez shaPosted Feb 1, 2011, 6:32 AM
i am trying to send parameter by the user and to preview the report. for example, the user will select the invoice no and click the preview button to view the report. i it working when i run the project form the visual studio 2008 . but when i publish it and try to work from the browser (opera / firefox ) also shared the shared the folder "C:\Documents and Settings\Administrator\Local Settings\Temp" and "C:\WINDOWS\Temp" it is not working and show the following error: Error in File C:\WINDOWS\TEMP\rptLedgerSubsidiary {1949386A-245F-4BE8-8354-62CA224759CE}.rpt: Access to report file denied. Another program may be using it.
rebecca evanseditedPosted Dec 13, 2010, 11:00 PMEdited Dec 13, 2010, 11:15 PM
hello, i have to filter the data which is using dropdownlist and 2 textboxs (3 of 'em autopostback). i'm done display the data in gridview and the problem is i need to display same gridview data in crystal report to another page when i click a button view. actually i'm new in .net and i have no idea how to do it.. i'm using c# .net 2.0. thanks in advance.
Niraj DoshieditedPosted Oct 6, 2010, 8:01 AMEdited Oct 6, 2010, 8:05 AM
Hi Mahesh, I am passing the string parameters to parameter fields of crystal reports using the following code, but still a window prompting for Parameter value appears at runtime !! Any suggestions or solutions ??!! Thanks in advance ReportDocument reportDocument = new ReportDocument(); ParameterFields paramFields = new ParameterFields; ParameterField paramField; ParameterDiscreteValue paramDiscreteValue; paramField = new ParameterField(); paramField.Name = "HeaderColumn1"; paramDiscreteValue = new ParameterDiscreteValue(); paramDiscreteValue.Value = "Customer Code"; paramField.CurrentValues.Add(paramDiscreteValue); paramFields.Add(paramField); crystalReportViewer1.ReportSource = reportDocument; crystalReportViewer1.ParameterFieldInfo = paramFields; crystalReportViewer1.RefreshReport(); Thanks in advance :)
luku ahmedPosted Aug 31, 2010, 12:57 AM
I tried to connect crystel report and dataset I got an exception An unhandled exception of type 'System.StackOverflowException' occurred in CrystalDecisions.CrystalReports.Engine.dll
kamran haqPosted Jun 2, 2010, 12:15 PM
i dont know why when i remove @ from perameter field it is working fine Private Sub CreateReport() Dim objReport As New invoice ' 'CrystalReport1 Dim myResults As CrystalDecisions.CrystalReports.Engine.Table Dim myLogin As CrystalDecisions.Shared.TableLogOnInfo '///////////////////////////////////////////////////////////////////////////// Dim crParameterDiscreteValue As ParameterDiscreteValue Dim crParameterFieldDefinitions As ParameterFieldDefinitions Dim crParameterFieldLocation As ParameterFieldDefinition Dim crParameterValues As ParameterValues crParameterFieldDefinitions = objReport.DataDefinition.ParameterFields crParameterFieldLocation = crParameterFieldDefinitions.Item("emailadd") crParameterValues = crParameterFieldLocation.CurrentValues crParameterDiscreteValue = New CrystalDecisions.Shared.ParameterDiscreteValue crParameterDiscreteValue.Value = "Parameter1Value" crParameterValues.Add(crParameterDiscreteValue) crParameterFieldLocation.ApplyCurrentValues(crParameterValues) ' Add a parameter value - END crParameterFieldLocation = crParameterFieldDefinitions.Item("customText") crParameterValues = crParameterFieldLocation.CurrentValues crParameterDiscreteValue = New CrystalDecisions.Shared.ParameterDiscreteValue crParameterDiscreteValue.Value = "Parameter2Value" crParameterValues.Add(crParameterDiscreteValue) crParameterFieldLocation.ApplyCurrentValues(crParameterValues) '///////////////////////////////////////////////////////////////////////////////////// For Each myResults In objReport.Database.Tables myLogin = myResults.LogOnInfo myLogin.ConnectionInfo.UserID = "xxxxx" myLogin.ConnectionInfo.Password = "xxxxxxxx" myResults.ApplyLogOnInfo(myLogin) Next invoice.ReportSource = objReport End Sub
mohamed eltiganiPosted May 6, 2010, 8:01 AM
hi sir, It's nice work, I tried to apply this example to my work, but I faced with this error (; expected) at line (ParDiscreteValue = New ParDiscreteValue;) and I didn't forget ";"..! using C#, my code is: <code> RepDS= new DataSet1() ; RepDS = repBS.Getrcountcate(FromDate, ToDate); MyreportDOC.Load("RCountPerProvince.rpt"); MyreportDOC.SetDataSource(RepDS); // Declare report variables ParameterDiscreteValue crParameterDiscreteValue; ParameterFieldDefinitions crParameterFieldDefinitions; ParameterFieldDefinition crParameterFieldLocation; ParameterValues crParameterValues; //report parameters crParameterFieldDefinitions = MyreportDOC.DataDefinition.ParameterFields; // add date 1 parameter crParameterFieldLocation = crParameterFieldDefinitions.Item("@FromDate"); crParameterValues = crParameterFieldLocation.CurrentValues; crParameterDiscreteValue = New crParameterDiscreteValue(); crParameterDiscreteValue.Value = FromDate; crParameterValues.Add(crParameterDiscreteValue); crParameterFieldLocation.ApplyCurrentValues(crParameterValues); //add date 2 parameter crParameterFieldLocation = crParameterFieldDefinitions.Item("@todate"); crParameterValues = crParameterFieldLocation.CurrentValues; crParameterDiscreteValue = New CrystalDecisions.Shared.ParameterDiscreteValue; crParameterDiscreteValue.Value = ToDate; crParameterValues.Add(crParameterDiscreteValue); crParameterFieldLocation.ApplyCurrentValues(crParameterValues); // load Viewer CrystalReportViewer1.ReportSource = MyreportDOC ; CrystalReportViewer1.DataBind(); </code>
Ahmed ElbehairyPosted Apr 14, 2010, 5:01 AM
Missing Parameter values
smita desaiPosted Mar 1, 2010, 4:30 AM
I m writing a report using vb.net 2008.i m held up with prbms.how to drag and drop the parameters on crystalreport.rpt.i want to create monthly sales report where my database includes salesmaster and salesdetails table.how to specify date.
Hari babuPosted Feb 19, 2010, 2:41 AM
code not working
prog jeditedPosted Jan 15, 2010, 1:50 AMEdited Jan 15, 2010, 2:01 AM
Mahesh, I already added proper componant (CrViewer) & refrences also. I want to export the .rpt file to .pdf file. I can export the file properly, means the data which is showing my exported pdf file is right. But the problem is I cant get the formulas which are created in .rpt file. Some formulas are showing blank value, some are showing the value of other formulas. The value for these formulas is pasing programmatically using VB 6.0. So, nw I want to know tht hw to pass Crystal reports formulas/value of formulas to the Cr Viewer...... Plz help me asap..........Thanks in advance
pankaj insanPosted May 29, 2009, 6:55 AM
hi Sir how r u ? I and looking for how to pass values to formula field in crystal report progarmatically... Let me explain you what i am doing ... i am creating a report with 10 fixed fields but which field will be displayed first will be decided at runtime .. for example ... i have four fields ... Name , FName, Phone, Email..... i will decide at runtime the format of report .... 1. Name Fname Phone Email 2. Fname Name Phone Email 3. Email Name Phone Fname like this it can be any depending on the user requirement .... so i have used 10 formula fields and i will pass the field name to formulas at runtime ... so how to do that .... i am not getting it ... If there is any other alternative please help me .... Thanks for ur useful help in advance ...
jadiPosted Mar 31, 2009, 12:31 PM
Hi, I have no experience with crystal reports. I have a windows form called form1 on whiich I have a datetimepicker and a checklist box. I want to pass the date selected(invoice date) and all the cheked boxes in the list (invoice number) to the report. On the deisgn of the form 1 there are no crystal report objects. the code is as follows. Please help me. Dim cryRpt As New ReportDocument cryRpt.Load("C:\Documents and Settings\SPatel\Desktop\Rental Invoice.rpt") Dim crViewer As New CrystalDecisions.Windows.Forms.CrystalReportViewer Dim crParameterFieldDefinitions As ParameterFieldDefinitions Dim crParameterFieldDefinition As ParameterFieldDefinition Dim crParameterValues As New ParameterValues Dim crParameterDiscreteValue As New ParameterDiscreteValue crParameterFieldDefinitions = cryRpt.DataDefinition.ParameterFields crParameterFieldDefinition = crParameterFieldDefinitions.Item("INVOICE_NUMBER") crParameterValues = crParameterFieldDefinition.CurrentValues Dim dMyDate As String dMyDate = DateTimePicker1.Value.Date Dim crParadateValues As New ParameterValues Dim crParadateDiscreteValue As New ParameterDiscreteValue crParadateDiscreteValue.Value = dMyDate crParameterFieldDefinitions = cryRpt.DataDefinition.ParameterFields crParameterFieldDefinition = crParameterFieldDefinitions.Item("INVOICE_DATE") crParadateValues = crParameterFieldDefinition.CurrentValues crParameterValues.Add(crParadateDiscreteValue) crParameterFieldDefinition.ApplyCurrentValues(crParadateValues) For i As Integer = 0 To rentalinvoices.CheckedItems.Count – 1 str = rentalinvoices.CheckedItems(i).ToString() crParameterDiscreteValue.Value = str crParameterValues.Add(crParameterDiscreteValue) crParameterFieldDefinition.ApplyCurrentValues(crParameterValues) Next crParameterFieldDefinition.ApplyCurrentValues(crParameterValues) crViewer.ReportSource = cryRpt crViewer.Refresh()
Maksuda HossainPosted Sep 11, 2008, 1:07 PM
Hi: I write the code in C# but getting the error: 'CrystalDecisions.CrystalReports.Engine.ParameterFieldDefinitions' does not contain a definition for 'Item' any idea why this error? pls help me......... thnx in advance maksuda
Maksuda HossainPosted Sep 11, 2008, 1:05 PM
Hi Mahesh Chand: I tried your code in C#. But I am getting an error: 'CrystalDecisions.CrystalReports.Engine.ParameterFieldDefinitions' does not contain a definition for 'Item' why this error? can someone pls help? thnx in advance
paul stephensPosted Mar 13, 2008, 4:43 PM
How do I create a datatable or dataset in memory and pass (bind) to crystall reports
laxman sPosted Mar 12, 2008, 10:50 AM
How to bind sqlXml Stored procedure to a Crystal report dynamically
nicolas tarimoPosted Mar 11, 2008, 8:45 AM
I am passing date parameter to the report but bit doesnot load the data but,in sql the same parameter load the data.What is the problem of this?
sudhirPosted Mar 4, 2008, 3:12 AM
Hello mahesh, dear i have copy ur code and paste it but it is giving one error as : Error 1 'DataDefinition' is not a member of 'CrystalDecisions.Web.CrystalReportViewer' Please sort out this problem also please please if u can then plz provide me the code for filtering report according to given start date and end date as in my database(in one table) there is one column of date and i want that user should see report accordingly in between by giveng start date and end date.So plz plz provied me the code for passing start date and end date..i'll be very thankfull to u....
sudhirPosted Mar 4, 2008, 2:53 AM
Hello mahesh, dear i have copy ur code and paste it but it is giving one error as : Error 1 'DataDefinition' is not a member of 'CrystalDecisions.Web.CrystalReportViewer' Please sort out this problem also please please if u can then plz provide me the code for filtering report according to given start date and end date as in my database(in one table) there is one column of date and i want that user should see report accordingly in between by giveng start date and end date.So plz plz provied me the code for passing start date and end date..i'll be very thankfull to u....
LeePosted Jan 15, 2008, 4:54 PM
Just curious if there is anything I should know about linked parameters in subreports. I have tried to use your code, which is very helpful in loading reports as embedded resources, however I am having trouble loading reports which have subreports with linked parameters. Any tips? Thanks,
Gonzalo VarelaPosted Sep 25, 2007, 9:38 PM
Thanks for this Tip it's very usefull
dan buenvenidaeditedPosted Aug 27, 2007, 4:14 AMEdited Aug 27, 2007, 4:19 AM
This is the error message: Invalid index. (Exception from HRESULT: 0x8002000B (DISP_E_BADINDEX)) This is my code: Dim crReportDocument As New CrystalReport1 Dim crParameterFieldDefinitions As ParameterFieldDefinitions Dim crParameterFieldDefinition As ParameterFieldDefinition Dim crParameterValues As ParameterValues Dim crParameterDiscreteValue As ParameterDiscreteValue crParameterFieldDefinitions = crReportDocument.DataDefinition.ParameterFields crParameterFieldDefinition = crParameterFieldDefinitions.Item("StartDate") 'Error source crParameterValues = crParameterFieldDefinition.CurrentValues crParameterDiscreteValue = New ParameterDiscreteValue() crParameterDiscreteValue.Value = CDate("7/1/7") crParameterValues.Add(crParameterDiscreteValue) crParameterFieldDefinition.ApplyCurrentValues(crParameterValues) crParameterFieldDefinition = crParameterFieldDefinitions.Item("EndDate") crParameterValues = crParameterFieldDefinition.CurrentValues crParameterDiscreteValue = New ParameterDiscreteValue() crParameterDiscreteValue.Value = CDate("8/31/7") crParameterValues.Add(crParameterDiscreteValue) crParameterFieldDefinition.ApplyCurrentValues(crParameterValues) crParameterFieldDefinition = crParameterFieldDefinitions.Item("CustomerRN") crParameterValues = crParameterFieldDefinition.CurrentValues crParameterDiscreteValue = New ParameterDiscreteValue() crParameterDiscreteValue.Value = CInt("3") crParameterValues.Add(crParameterDiscreteValue) ParameterFieldDefinition.ApplyCurrentValues(crParameterValues) crReportDocument.Load("D:\MyWorks\DMB\Windows Apps\FinOrg\FinOrg\FinOrg\CrystalReport1.rpt") crReportDocument.SetDatabaseLogon("Administrator", "autumninnewyork") crReportDocument.Refresh() Me.CrystalReportViewer.ReportSource = crReportDocument Any suggestion? thanks :)
nastaran dehdashtPosted Aug 12, 2007, 7:27 AM
I created a sql command in the crystal report and load this report in vb.net . now the location of datasource is changed and moved to new server , I want to change server by coding in vb.net I use report.setdatabaselogon(userid,password,servername,database) But error failed logon and incorrect logon parameter occured.
BhavesheditedPosted Aug 10, 2007, 11:54 AMEdited Aug 10, 2007, 11:56 AM
I am passing the datatable/dataset to the SetDataSource method. And also passing the parameters as shown in your piece of code. But I can't see the parameters being populated in the report. Some additional information. There report files were original developed in Crystal 8.5 I am using Crystal DotNet runtime version 10.0.3300.0 The parameters are used in the header section using following sytnax {?@ParamName} I heard that we cannot used both SetDataSource and Parameters i.e. either use SetDataSource or use Parameters with ConnectionInfo. Is that true? From your article I guess the answer is No. Thanks, Bhavesh
Prabhakaran SathasivamPosted Jul 19, 2007, 6:28 AM
we have developed a front end application in .NET using SQL as backend. We have designed report Using Crystal Decision . But when we try to execute the program, We have encountered the problem with error msg "Login failed ! try Again"... Moreover in Crystalreport.Viewer .. we had to press REFRESH button for every change in Report Value.. We need help from you... regards Prabhakaran
Tamer UcarPosted Jun 29, 2007, 5:47 AM
Can someone provide the C# version of the code?
Jayaram UdayakumarPosted Jun 25, 2007, 4:43 PM
Mahesh, I'm getting the data in xml file once the dataset is saved to. But the same dataset data is not displaying in the report using crReportDocument.SetDataSource(dataSet) after binding dataset to crystal report. Kindly advice Thanks, Jayaram
SonalPosted Jun 6, 2007, 9:44 AM
Hi, I am passing my values programmatically by asp.net code. But still I am getting a prompt to enter the value. Why?
ErwinPosted Jun 1, 2007, 1:26 AM
How can i seve or export a filled rpt.viewer as a .rpt file passing the filename as parameter. I need to avoid the user interaction and the savedialog control. Thenks in adv.
MangalaPosted Apr 25, 2007, 2:02 AM
Is it possible to generate report without using dataset / stored procedure or anything related to a database or XML. Like generating report using the Windows forms control texts that are not bound to any database. Are there any samples available?
vidya sagar chimmiriPosted Apr 10, 2007, 1:58 AM
i am trying to generate crystal reports based on a combobox selected value in C#.net can any body help me regarding that. very very urjent
kalpnaPosted Nov 6, 2006, 9:25 AM
Also, I am trying to make table of content for company's very confidentianl report. Could you please tell me how can I do that?
kalpnaPosted Nov 6, 2006, 9:21 AM
Hi Mahesh, Could please tell me how can I pass integer and date time type parameters for crystal report in code?(if possible in C#) Thanks, Kalpna Parmar
mohammed alkaffPosted Nov 2, 2006, 1:43 AM
hello when I Pass The parameter from .Net to REports and Change Teh Connection (login To DataBase) not Work? why please if u can help me :what code to define Connection in .Net (log To Sql)and work the Crystal Reports Thank u