Hi Dears:
I am going to make a program that takes some text controls in a C# project and then when we submit the form the values of text boxes goes to a pre-made report and substitute there, then the user can print it.
for example in VS I have a text box that takes the Name, and I want in the crystal report to show this : I am [txtName]. that [txtName] have to be substitute by the value of text box txtName in VS and will be shown in Crystal Report.
and finally it will be :
I am Soroosh.
What should I do?
I do not need any Data Base. It's a DB Free Program.
Please if you know the answer tell me in details not in summary I am a newbie in C#.
Thanks in advance.
Soroosh
Loading

Trinity105 reputationPosted Oct 11, 2009, 11:58 AM EDT
as follow:
ParameterField field = CrystalReportViewer1.ParameterFieldInfo[0];
ParameterDiscreteValue value = new ParameterDiscreteValue();
v1.Value = "yourname";
field.CurrentValues.Add(value);
CrystalReportViewer1.RefreshReport();
Soroosh5 reputationPosted Oct 11, 2009, 12:03 PM EDT
at least with a little example?
Thanks.
Trinity105 reputationPosted Oct 11, 2009, 12:45 PM EDT
http://www.c-sharpcorner.com/UploadFile/jayendra/109272009060421AM/1.aspx
Soroosh5 reputationPosted Oct 11, 2009, 10:19 PM EDT
Imagine printing a long and complicated form, I want make it computerized and let the customers to enter their information in my program and the program just send them to CR and then print it.
How should I do this? I found that I am really nothing in C#, but I love programming.
Thanks for your great time.
MARIO FERNANDEZ5 reputationPosted Mar 13, 2012, 12:33 PM EDT