Hi Mauricio,
one of my problems is that
>cFile = "c:\test\testfile.rtf"
>...
>append general ortf from cFile
will bound the general field to the programm the extension "rtf" is bound to. Usualy it is a programm like WinWord. But since
I need to ship my progrm I can not trust in the existence of such a program. So I bound the general field to the "richtext.richtextctrl" with the
CLASS clause.
I set the object to clip to.
But what ever I do (Append general with or without CLASS) my object is cutted after approximately 598 pixels. The 413 pixels on the right are not used (blank)
Did I mention that I use landscape orientation?
After playing around I saw that the object included is always the same size in width. It will wrap the text on its corner. What I need is an object that will fit into the given ole frame and calculate wordwrapping on the size of the ole field.
Or I need to put the size of the object into the general field in a way that it fits to the report.
Agnes
>I have tested with the RTF control to see what happen and
>nothing bad happen.
>What I did is the following:
>I create a new form and put a RTF control on it, and a command button with this code:
>
>cFile = "c:\test\testfile.rtf"
>Thisform.olecontrol1.Savefile(cFile,0)
>Create cursor rtftemp(ortf g)
>append blank
>append general ortf from cFile
>Report form rtftest preview noconsole
>
>*******
>This seems to work well
>at the rtftest report I set an olecontrol and set the properties to Clip the image, and pointing to the rtftemp.ortf field
>and all works Ok.
>Just have to make the control taller to fit the entire page, making the detail band taller.
>
>Hope this help
>
>Mauricio
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord
Weeks of programming can save you hours of planning.
OffThere is no place like [::1]