Question

I've got an ActiveReport which has a textbox populated at run time. The "cangrow" and "multiline" properties are both set to "true".

When I run the report on my machine, the report prints out fine with all of the text set at run time. IE: "Dear John, hello -- how are you..." There's only about 250 characters for this textbox.

However, one of the machines downstairs will only print the name of the textbox. IE: "txtVerbage". A blank report with "txtVerbage" in the middle of it, where the body (see above) should be.

Has anyone else had this experience? I've been banging my head against the wall for days now.

Thanks,

Jason

Was it helpful?

Solution

Its probably the timing of when you're setting the Field/TextBox value. Make sure you set it in the Format event of the section containing the control (e.g. Detail_Format). Using the BeforePrint or AfterPrint or one of the Report events can yield unpredictable results like this.

Also be sure you set the Field.DataValue property and not the Text property.

Some background information on this is in the articles below:

Hope this helps!

 Scott Willeke
 GrapeCity

OTHER TIPS

The data you access from downstairs is not there. That is why when you bind the data to the report, nothing appears. The reason you see txtVerbage is because that is what you called the text control and that was the default text there.

So you need to make sure that you are actually getting data.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top