TextBox/Text not showing after report is generated.

Сonversation on different topics
Post Reply
alwessels
Posts: 4
Joined: Mon Nov 24, 2008 8:26 am
Location: South Africa

TextBox/Text not showing after report is generated.

Post by alwessels » Wed Sep 09, 2009 3:54 am

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?
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

TextBox/Text not showing after report is generated.

Post by Jan » Wed Sep 09, 2009 10:57 am

Hello,

Please show code which you use for report generation. Also try to set border of textbox. It visible in preview?

Thank you.
alwessels
Posts: 4
Joined: Mon Nov 24, 2008 8:26 am
Location: South Africa

TextBox/Text not showing after report is generated.

Post by alwessels » Wed Sep 09, 2009 11:08 am

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?
alwessels
Posts: 4
Joined: Mon Nov 24, 2008 8:26 am
Location: South Africa

TextBox/Text not showing after report is generated.

Post by alwessels » Wed Sep 09, 2009 11:41 am

Textbox is there it is just the text that is missing?
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

TextBox/Text not showing after report is generated.

Post by Jan » Fri Sep 11, 2009 3:12 pm

Hello,

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

Thank you.
billy.goforth
Posts: 9
Joined: Fri Apr 09, 2021 1:44 pm

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

Post by billy.goforth » Fri Apr 16, 2021 1:53 pm

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

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

Post by Lech Kulikowski » Mon Apr 19, 2021 2:36 pm

Hello,

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

Thank you.
Post Reply