Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP9 report preview with search ability
Message
From
18/08/2005 18:31:31
Dorin Vasilescu
ALL Trans Romania
Arad, Romania
 
 
To
18/08/2005 09:43:17
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
SAMBA Server
Miscellaneous
Thread ID:
01041840
Message ID:
01042114
Views:
22
Hi David, thanks for your reply
I didn't followed the hard part to create a ReportPreview from scratch. I've used the already designed ReportPreview and I changed the code in updatelistener class from ReportOutput (the cursor creation in Init and filling in Render). This part works.
The search from the ReportPreview triggered by toolbar buttons/keyboard also works, but without the highlighting.
I believe that is because the call of OutputPage with eDevice=2 parameter. I tried with line,box,shape. I tried to get the HWnd of the client area and use GDI+ to draw a shape. No luck :(. Maybe VFP creates other child windows based on canvas coordinates. If I can know how to get these handles, maybe I can succed in highlighting text on page.



>Dorin,
>
>You may already know this, but Doug Hennig did the same thing in a series of two articles in FoxTalk -- April and May, 2005. He uses the info in his rendering info cursor to draw lines around each item found during the search. If you have a FoxTalk subscription, you can see the solution to your question in part 2 (May issue).
>
Previous
Reply
Map
View

Click here to load this message in the networking platform