August 29th, 2011, 08:41 AM
Crystal Report for visual studio 2010, How to change header text at runtime using C#
I would like to fill dynamically a
crystal report header section text object
with the content of a textbox
located on the Form hosting the Crystal Report Viewer
Thank you in advance
To be more explicit:
I have a C# 2010 project containing:
1 Form named Form1 containing:
1 TextBox named Text1
1 Button named Button1
1 Crystal Report Viewer named CrystalReportViewer1 attached to:
1 blank Crystal Report (not linked to any datasource) named CrystalReport1 containing:
1 TextObject named Text2, located in the header section of the report.
I need : When I fill Text1 with "A" and click button1; the Report header must show "A"
When I fill Text1 with "B" and click button1; the Report header must show "B"
Tags for this Thread
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.