I am gereating a page in code. I add a textbox to the page with a certain text value. But after the report is rendered the page is empty. I export the report to pdf and tif and the problem is in both formats.
I checked the value of the StiText.Text just before and after the report is generated [StiReport.Render()] and it i as it should be. But the page in the report is still empty. I checked the size and position of the textbox and it is fine. I checked the color of the font and it is fine. I reinstalled stimulreports (I am using version 2009.1). Still the same problem. I tried the exact same code on a dev machine. It works perfect.
I have no idea what can be the problem. Any ideas?
TextBox/Text not showing after report is generated.
TextBox/Text not showing after report is generated.
Hello,
Please show code which you use for report generation. Also try to set border of textbox. It visible in preview?
Thank you.
Please show code which you use for report generation. Also try to set border of textbox. It visible in preview?
Thank you.
TextBox/Text not showing after report is generated.
Hi
Ive have found that the problem has to do with loading the report.
I sometimes generate thousands of reports reports (They all use the same report).
The first report uses:
report.Load(Filename.mrt);
report.Compile(Filename.dll);
All the other reports uses:
report = StiReport.GetReportFromAssembly(Filename.dll, true);
THe first report prints fine. The other reports give this error?
Ive have found that the problem has to do with loading the report.
I sometimes generate thousands of reports reports (They all use the same report).
The first report uses:
report.Load(Filename.mrt);
report.Compile(Filename.dll);
All the other reports uses:
report = StiReport.GetReportFromAssembly(Filename.dll, true);
THe first report prints fine. The other reports give this error?
TextBox/Text not showing after report is generated.
Textbox is there it is just the text that is missing?
TextBox/Text not showing after report is generated.
Hello,
I hesitate to say what the problem. Can you create small sample project which illustrate problem?
Thank you.
I hesitate to say what the problem. Can you create small sample project which illustrate problem?
Thank you.
-
- Posts: 24
- Joined: Fri Apr 09, 2021 1:44 pm
Re: TextBox/Text not showing after report is generated.
I'm having the same issue. The Text Box (with Border shows) but no text.
Here is the code that is building it. All my other text is showing up.
var keyText = new StiText(new RectangleD(.05, .01, .9, .25));
keyText.CanGrow = true;
keyText.CanShrink = true;
keyText.TextBrush = new StiSolidBrush(Color.Gray);
keyText.Name = "ParamKey";
keyText.Text.Value = "TEST";
keyText.ShrinkFontToFit = true;
keyText.Font = new Font(FontFamily.GenericSansSerif, 10, FontStyle.Regular);
keyText.GrowToHeight = true;
Here is the code that is building it. All my other text is showing up.
var keyText = new StiText(new RectangleD(.05, .01, .9, .25));
keyText.CanGrow = true;
keyText.CanShrink = true;
keyText.TextBrush = new StiSolidBrush(Color.Gray);
keyText.Name = "ParamKey";
keyText.Text.Value = "TEST";
keyText.ShrinkFontToFit = true;
keyText.Font = new Font(FontFamily.GenericSansSerif, 10, FontStyle.Regular);
keyText.GrowToHeight = true;
-
- Posts: 6431
- Joined: Tue Mar 20, 2018 5:34 am
Re: TextBox/Text not showing after report is generated.
Hello,
Please send us a sample that reproduces the issue for analysis.
Thank you.
Please send us a sample that reproduces the issue for analysis.
Thank you.