Hi,
I’m trying to attach a PDF to a word document but getting issues opening the file from within Word. If I embed from within word it works fine.
I’ve tried the following code:
builder.InsertOleObjectAsIcon(filePath, false, null, filename);
Stream memStream = File.OpenRead(filePath);
builder.InsertOleObject(memStream, "AcroExch.Document.DC", true, null);
builder.InsertOleObject(memStream, "Package", true, null);
builder.InsertOleObject(memStream, "Acrobat.Document.DC", true, null);
Any help would be greatly appreciated.
Thanks,
Dan