Report Designer Code View
-
- Posts: 45
- Joined: Tue May 21, 2019 1:44 pm
Report Designer Code View
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?
Do I need to refresh the code view somehow?
- Attachments
-
- Report Designer Code View.jpg (127.21 KiB) Viewed 3314 times
-
- Posts: 45
- Joined: Tue May 21, 2019 1:44 pm
Re: Report Designer Code View
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?
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?
-
- Posts: 6247
- Joined: Tue Mar 20, 2018 5:34 am
Re: Report Designer Code View
Hello,
Your code will work in the Preview.
Thank you.
Your code will work in the Preview.
Thank you.
-
- Posts: 45
- Joined: Tue May 21, 2019 1:44 pm
Re: Report Designer Code View
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.
If I toggle the "Show Auto Generated Code" option in the popup menu then the changes appear to take affect.
-
- Posts: 6247
- Joined: Tue Mar 20, 2018 5:34 am
Re: Report Designer Code View
Hello,
Please send us a sample report which reproduces the issue for analysis.
Thank you.
Please send us a sample report which reproduces the issue for analysis.
Thank you.
-
- Posts: 45
- Joined: Tue May 21, 2019 1:44 pm
Re: Report Designer Code View
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"
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"
-
- Posts: 6247
- Joined: Tue Mar 20, 2018 5:34 am
Re: Report Designer Code View
Hello,
Please read the following comment on the Code Tab:
Thank you.
Please read the following comment on the Code Tab:
Thank you.
- Attachments
-
- Annotation 2019-06-11 155302.jpg (111.15 KiB) Viewed 3288 times