Bitmap LinkFileName error in Drw with Object Model !

Hi,

I'm trying to update a Bitmap shape with c# in Draw X4.

when i try to set the new path for "LinkFileName" parameter, my C# debugger send me a error "HRESULT" "COMException ". In the Object Model reference is normally {Get,Set}!!

-------------------

code:

...

  BitmapShape.LinkFileName = temppath;
                        BitmapShape.UpdateLink();

...

 

-----------------------

"BitmapShape" is a active reference of  "ActiveShape.Bitmap".

anybody know why "LinkFileName" do not work?

thanks

 

 

 

  • Hi Jean-Baptiste,

    not sure you still need a reply on this question...

    The Bitmap.LinkFileName property is read only - you cannot set/ alter it. Here's the info from the CorelDRAW VBA Help file on that:

    Bitmap.LinkFileName

    Property LinkFileName As String

    Member of Bitmap

    The LinkFileName property returns the filename of an externally linked bitmap.

    The LinkFileName property returns a read-only value.

    The UpdateLink method rereads the file (using the path that is defined in "LinkFileName").

    Regards,
    Klaus.