Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RTF Text in Report
Message
From
25/04/2002 01:25:35
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
To
24/04/2002 19:01:13
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00647223
Message ID:
00648993
Views:
18
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.

Off

There is no place like [::1]
Previous
Reply
Map
View

Click here to load this message in the networking platform