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
MARIO FERNANDEZPosted Mar 13, 2012, 4:33 PM
SorooshPosted Oct 12, 2009, 2:19 AM
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.
TrinityPosted Oct 11, 2009, 4:45 PM
http://www.c-sharpcorner.com/UploadFile/jayendra/109272009060421AM/1.aspx
SorooshPosted Oct 11, 2009, 4:03 PM
at least with a little example?
Thanks.
TrinityPosted Oct 11, 2009, 3:58 PM
as follow:
ParameterField field = CrystalReportViewer1.ParameterFieldInfo[0];
ParameterDiscreteValue value = new ParameterDiscreteValue();
v1.Value = "yourname";
field.CurrentValues.Add(value);
CrystalReportViewer1.RefreshReport();