Hello,
How i can change the brush color of a shape in runtime?
And, How I can change the page of a subreport in runtime?
Thank you
change shape brush color in runtime
change shape brush color in runtime
Hello,
Thank you.
You can use following code:How i can change the brush color of a shape in runtime?
Code: Select all
Shape1.Brush = new StiSolidBrush(Color.Red);
Place following code in BeforePrintEvent of sub report component:How I can change the page of a subreport in runtime?
Code: Select all
SubReport1.SubReportPage = subReport_1;
change shape brush color in runtime
OkCode: Select all
Shape1.Brush = new StiSolidBrush(Color.Red);
Using this works but the page of the subreport is printed as subreport and also as alone page. I don't want this second pageHow I can change the page of a subreport in runtime?
Place following code in BeforePrintEvent of sub report component:
Code: Select all
SubReport1.SubReportPage = subReport_1;
Thank you
change shape brush color in runtime
Self answering me,
Setting the Enabled property of all the pages of subreport to false works as I like.
Thank you
change shape brush color in runtime
This is very good - you solved your problem yourself!