| |

VerySource

 Forgot password?
 Register
Search
View: 635|Reply: 2

Crystal report header is dynamic, how to dynamically write the header in the .cs file?

[Copy link]

1

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-2-2 13:20:01
| Show all posts |Read mode
The ITextObject control that is dragged and dropped in the .rtp file does not generate an object in the .cs file, so it cannot be controlled. I wonder if there are other ways to control the display content of the report header?
Reply

Use magic Report

0

Threads

26

Posts

21.00

Credits

Newbie

Rank: 1

Credits
21.00

 China

Post time: 2020-3-22 10:00:02
| Show all posts
((TextObject) CrystalReport1.ReportDefinition.ReportObjects ["Text9"]). Text
Reply

Use magic Report

1

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-3-24 17:45:01
| Show all posts
CrystalReport1.ReportDefinition.ReportObjects ["myField"]. Text
If you want to set
CrystalReport1.ReportDefinition.ReportObjects ["myField"]. Text = {"Table name.Field"}
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list