Page 1 of 1

TextBox/Text not showing after report is generated.

Posted: Wed Sep 09, 2009 3:54 am
by alwessels
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.

Posted: Wed Sep 09, 2009 10:57 am
by Jan
Hello,

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.

Posted: Wed Sep 09, 2009 11:08 am
by alwessels
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?

TextBox/Text not showing after report is generated.

Posted: Wed Sep 09, 2009 11:41 am
by alwessels
Textbox is there it is just the text that is missing?

TextBox/Text not showing after report is generated.

Posted: Fri Sep 11, 2009 3:12 pm
by Jan
Hello,

I hesitate to say what the problem. Can you create small sample project which illustrate problem?

Thank you.

Re: TextBox/Text not showing after report is generated.

Posted: Fri Apr 16, 2021 1:53 pm
by billy.goforth
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;

Re: TextBox/Text not showing after report is generated.

Posted: Mon Apr 19, 2021 2:36 pm
by Lech Kulikowski
Hello,

Please send us a sample that reproduces the issue for analysis.

Thank you.