开发者

VB6, ActiveReports, and CanGrow property

开发者 https://www.devze.com 2023-03-28 02:12 出处:网络
I\'ve got an ActiveReport which has a textbox populated at run time. The \"cangrow\" and \"multiline\" properties are both set to \"true\".

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: "t开发者_如何学CxtVerbage". 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


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:

  • ActiveReports Architecture: Report Processing
  • ActiveReports Architecture: Events
  • Navigable documentation w/ TOC

Hope this helps!

 Scott Willeke
 GrapeCity


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号