Report Designer Code View

Stimulsoft Reports.WEB discussion
Post Reply
ChrisHolland
Posts: 45
Joined: Tue May 21, 2019 1:44 pm

Report Designer Code View

Post 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?
Attachments
Report Designer Code View.jpg
Report Designer Code View.jpg (127.21 KiB) Viewed 3312 times
ChrisHolland
Posts: 45
Joined: Tue May 21, 2019 1:44 pm

Re: Report Designer Code View

Post 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?
Lech Kulikowski
Posts: 6245
Joined: Tue Mar 20, 2018 5:34 am

Re: Report Designer Code View

Post by Lech Kulikowski »

Hello,

Your code will work in the Preview.

Thank you.
ChrisHolland
Posts: 45
Joined: Tue May 21, 2019 1:44 pm

Re: Report Designer Code View

Post 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.
Lech Kulikowski
Posts: 6245
Joined: Tue Mar 20, 2018 5:34 am

Re: Report Designer Code View

Post by Lech Kulikowski »

Hello,

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

Thank you.
ChrisHolland
Posts: 45
Joined: Tue May 21, 2019 1:44 pm

Re: Report Designer Code View

Post 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"
Lech Kulikowski
Posts: 6245
Joined: Tue Mar 20, 2018 5:34 am

Re: Report Designer Code View

Post by Lech Kulikowski »

Hello,

Please read the following comment on the Code Tab:

Thank you.
Attachments
Annotation 2019-06-11 155302.jpg
Annotation 2019-06-11 155302.jpg (111.15 KiB) Viewed 3286 times
Post Reply