Problems with saving and loading objects

  • Hi,
    I have troubles with save/load functions in WPTools v 4.25. Steps to reproduce:

    1. Create text and insert OLE object (Equation).
    2. After the OLE object put some text.
    3. Then insert another OLE object and text.
    4. Then insert some image and text.
    5. Then insert third OLE object.

    Than save the text.

    If you load this texxt into WPTools (including your demo WordProcessor.exe) the firtst OLE objects is loaded correctly, the image is visible too, but the third OLE object is gone. Please help me with this problem. In RTF document is all three OLE objects saved correctly.

    You can download the saved document at adress . http://www.dosli.cz/soubory/wptools/test.zip.

    Thanks for your help

    Petr Slipek
    Dosli

  • If I use custom form to create equations with OLE container, I am able to save its content to wptools image as metafile.

    Is there any way to save original data of the OLE container within wptools rtf text to be able to modify metafile later?

    Petr Slipek.

    • Offizieller Beitrag

    Hi,

    Yes, you can do that. You need to attach a blob property to the image object and save the program data with that.

    The load/save works just as in Delphi VCL - the propertry must be published, reader and writer functions must be defined.

    This code should be a good start:

    Julian