I am trying to figure out how to insert a gif file in the middle of a word file(.doc). I am asking here, becasue I thought maybe someone has come acrss this before.
I can read the doc file and create it as a different file and word will read, but if I try inserting someting into the file, then word can not read it. Does anyone know the format or the correct way to insert a gif file in middle of a microsoft word file(.doc) I can read the word file using something like: while(read(FILE, $buf, $len)) { #Here when ever I find a key word I open the gif file, read and insert #a print statement intothe OUT file handle if($_ =~ /nestor/) { while(read(GIF, $buf2, $len)) { print OUT $gif; } } print OUT $_; } When I look at the size of the new file, I can tell that tne input file and the GIF file are all one file but word does nto recognize the document. There must be some word format saying at this point display the gif file, kind of like in an HTML file you would have an <IMAGE> tag. How big do you have to set the $len scalar? I set it to 1024 currently. Can anyone give me any hints for the proper format to insert a gif file into a word file. Thanks, Nestor -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]