5
Answers

Sending data to crystal report by text box from C#

Photo of Soroosh

Soroosh

15y
15.1k
1
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

Answers (5)

0
Photo of Abhimanyu K Vatsa
NA 50.9k 12.4m 14y
I think you are asking about Visual Studio 2010. so there are lots of articles which explains step by step procedure to develop crystal reports, 

please read right side [Our recommended articles]
0
Photo of Mahesh Chand
2 286.9k 123.8m 14y
I am not sure if VB 2010 comes with the ReportViewer or not. You probably have to use Visual Studio 2010. You do not need any Crystal or other products to build reports using ReportViewer. This control is a Microsoft control.