Beiträge von rwvdw

    Hi,

    I'm using TWPToolbar with selHyperlink. When I press the button I get an InsertHyperlink-dialog. After I enter the url and close the dialog the Hyperlink-button stays down!!! Shouldn't the button be up? When I want to insert a next hyperlink I have to click the button twice. Is this a bug?

    Another question: can I replace the default inserthyperlink-dialog with my own? Maybe there should be an event (link OnInsertHyperlink). When it's assigned it replaces the default dialog.

    TIA,

    Ronald

    Zitat von wpsupport

    Hi,

    Please use the method

    AsANSIString

    it actually does the "SaveToString" functionality. In contrast to the also available AsString property (read and write) You can pass the format string i.e. 'HTML' as optional parameter.

    Julian

    Hi Julian,

    I tried AsANSIString before and it only resulted in the text. I didn't know I could use the FormatName-parameter. Now I'm using AsAnsiString('RTF') and it's working fine.

    Thanks,

    Ronald

    Hello,

    I'm using a TWPRichText as a memo-field and the RTF is stored in a BlobField in the database. It's also a string-property in a business-object I have created! I'm using BlobField.AsString to set and get the RTF en put it in the business-object. To put it from the business-object in the TWPRichtext I use the LoadFromString. To get the RTF from the TWPRichText I would like to use SaveToString. But there is no SaveToString. Why not?
    Now I have to use SaveToStream to put the RTF in a memorystream, load the memorystream in a TStringlist and then I can use the Text property to get the RTF-string I need.

    Is there an easy way to achieve the SaveToString I need with TWPRichtext directly?

    TIA

    Hi Julian,

    Thanks for your reply. I found the demo, installed Toolbar2000 + TBX, but cannot get the demo compiled! :(
    Why ? I'm using Delphi5 and the demo seems to need at least a version of Delphi7.

    Can you send me a compiled version of the TBX-demo. I have a manager who wants to see WPTools in action (as a wordprocessor) and it will take me too much time to set up a Delphi7 environment.

    TIA,

    Ronald

    You can email me at: rwvdwetering'AT'oec.nl (please replace 'AT' by @)