auto size rft field in report

I

Ina

Hello Guys,

I am working in .adp access project, it is a questioner.

The question is data type varchar fields and control type text field
the answer is data type ntext fields and control type rtf.
Some answers contain hundred of pages and others only one word.

How can I correctly set up it in a report? Should I use the page break
option?

I have this code in my report:

Private Sub DetailsReport_Format(Cancel As Integer, FormatCount As
Integer)
Dim RestRTF As String
Dim Height As Integer
Me!ctlRTF.Height = Me!ctlRTF.RTFheight
Debug.Print Me!ctlRTF.RTFheight
Debug.Print ctlRTF.Height

End sub

Any suggestion will be appreciate :)

ina
 
K

kingston via AccessMonster.com

Have you tried using the Can Grow and Can Shrink properties? I think setting
them both to yes will solve your problem. You may have to do this for both
the control and the report section. HTH.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top