Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Checkbox caption
Message
From
11/06/2008 06:36:09
 
 
To
11/06/2008 00:34:59
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01322765
Message ID:
01323027
Views:
25
This message has been marked as a message which has helped to the initial question of the thread.
>AFAIK, the trimming in reports is done outside the reportoutput.app, IOW it will work even if you provide an empty listener to REPORT FORM

Still all reports, even legacy types, are drawn with GDI+ by VFP9.

There is no other way to get the same functionality. But I see The GDI+ DrawText function accepts the following flags in it's uFormat parameter:

a) DT_MODIFYSTRING to get back the shortened string. Which is what you need mainly.
b) DT_END_ELLIPSIS, DT_PATH_ELLIPSIS or DT_WORD_ELLIPSIS to determine which kind of ellipsis.

see http://msdn.microsoft.com/en-us/library/ms533909(VS.85).aspx

You don't need to draw on the form, you just need a Graphics Object. I think this will be quite easy with GDIPLUSX from VFPX.

Bye, Olaf.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform