Reputation: 3934
I've a vertical line that i want to suppress with a condition. Unfortunately I don't see the condition option by a line. When I use an empty textbox, all the other text is moved down. Is there conditional another suppress option for a line?
Upvotes: 8
Views: 25041
Reputation: 103
I found an alternative to suppressing a line object, think this might help
CrystalReport1 cr1 = new CrystalReport1();
(cr1.ReportDefinition.ReportObjects["line_object_name"] as LineObject).LineStyle = CrystalDecisions.Shared.LineStyle.NoLine;
Upvotes: 0
Reputation: 11
Simple way,
Insert Text object increase the length of the object as required.
Go to Format Object -> select border property and choose Top or bottom lines.
As it worked for me.
Upvotes: 1
Reputation: 2750
You can't conditionally suppress a line in CR. I know of two options to get around that:
if condition then crWhite else NoColor
, where crWhite
will hide the line, NoColor
will show it.Upvotes: 14