• Hi
    I am trying to insert images into letter template with

    What I need to know is how can I change the 1440,1440 into the correct size for the picture. I can see the OpenPictureDialoge displays this but I can not find how to do this?

    Can you help?

    • Offizieller Beitrag

    Hi,

    If you assign
    WPLoadObjectFromFile(WPRichText1.Memo.RTFData, OpenPictureDialog2.FileName)

    to variable "obj" of type TWPObject you can retrieve its natural width and height using

    obj.ContentsWidth and obj.ContentsHeight.

    Julian