none
Image aus URL in Word importieren (Office 2003) RRS feed

  • Frage

  • Hallo,

    ich weiß nciht genau ob ich heir richtig bin. Wenn nicht würde ich darum bitte die Frage zu verschieben.

     

    Also ich versuche ein Bild aus dem Web in ein Word Dokument mittes C# zu importieren. Und zwar wie folgt:

     

    object imgrng = Globals.ThisDocument.Application.Selection.Range;                            

                    string imgloc = prop.Value.ToString();

                    object tr = true;                

                    object fa = false;

                    Globals.ThisDocument.Application.Selection.Range.InlineShapes.AddPicture(imgloc, ref tr, ref fa, ref imgrng);

    in prop.Value.ToString() ist die URl zu dem Image gespeichert.

    Allerdigns bekomme ich die Fehlermeldung:

    This is not a valid file name.
    Try one or more of the following:
    * Check the path to make sure it was typed correctly.
    * Select a file from the list of files and folders.

    Jedoch die URL zu dem image stimmt.

     

    Sonntag, 12. Dezember 2010 11:44