Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RTF control issues
Message
From
02/10/2008 03:32:17
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
RTF control issues
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01352189
Message ID:
01352189
Views:
80
I don't expect anyone has had the same problem, but I'm hoping that someone can give me some ideas as I'm stuck.

I have a form with an RTF control. The RTF control source is a memo field. There is also a Bold button.

This all works perfectly:
a) enter new text into the RTF control and it gets saved OK.
b) select some text and click the Bold button: the selected text is bolded OK.
c) exit the form and return: all works fine.

I then run a report (using Crystal reports). The report does not use the same table as on the RTF form.

After running any report and closing it, when I go to the RTF form it no longer works OK.

This happens:
a) can enter new text but it does not get saved to the memo field.
b) select some text and click the Bold button: the selected text is NOT bolded.
c) exit the form and return: makes no difference, still does not work.



If I never run a report, there is never a problem. However, running any report results in the RTF control no longer working. If I shutdown FoxPro and restart it again, it works OK.

I've tried many things: These work OK
?TYPE('ThisForm.Rtfx1.Object.SelBold')
?ThisForm.Rtfx1.Object.SelBold
The code to Bold selected text looks something like this:
ThisForm.Rtfx1.Object.SelBold = .T.
It gives an error: OLE error code 0x80020005: Type mismatch.


Any suggestions as to what the problem might be, i.e. the new data not being saved to the memo field and the Bold not working?

What can I try?


Cyril
Next
Reply
Map
View

Click here to load this message in the networking platform