Page 1 of 1

Report Designer Code View

Posted: Wed Jun 05, 2019 10:14 am
by ChrisHolland
When I view the code tab in the Report Designer (stand alone version) the code for the DataBand and TextBox, which can be seen in the ReportTree do not show in the Code view window!

Do I need to refresh the code view somehow?

Re: Report Designer Code View

Posted: Wed Jun 05, 2019 10:48 am
by ChrisHolland
I have found the solution - the popup menu option "Show Auto Generated Code".

If I make a change to the code in the Code View window, how do I update the report designer view to reflect the change in the code?

Re: Report Designer Code View

Posted: Wed Jun 05, 2019 12:16 pm
by Lech Kulikowski
Hello,

Your code will work in the Preview.

Thank you.

Re: Report Designer Code View

Posted: Wed Jun 05, 2019 12:21 pm
by ChrisHolland
Any changes I make in the code view window are not showing in the preview!

If I toggle the "Show Auto Generated Code" option in the popup menu then the changes appear to take affect.

Re: Report Designer Code View

Posted: Thu Jun 06, 2019 5:32 pm
by Lech Kulikowski
Hello,

Please send us a sample report which reproduces the issue for analysis.

Thank you.

Re: Report Designer Code View

Posted: Tue Jun 11, 2019 1:27 pm
by ChrisHolland
If you create a new blank report and drop a single Text component onto the page and change it to say "Fred".
Switch to the Code tab and change the Text1__GetValue(... to say "Harry" as below:

public void Text1__GetValue(object sender, Stimulsoft.Report.Events.StiGetValueEventArgs e)
{
// CheckerInfo: Text Text1
e.Value = "Harry";
}

Now switch to the preview Tab and the field says "Fred".

Also if you switch back to the Page1 view and then back to Code it has changed from "Harry" back to "Fred"

Re: Report Designer Code View

Posted: Tue Jun 11, 2019 1:53 pm
by Lech Kulikowski
Hello,

Please read the following comment on the Code Tab:

Thank you.