B
bpsmicro
From a user perspective, I can copy a blob of HTML from somewhere and paste
it into a Word document (Word 2003 in this case), and all the formatting is
preserved.
I need to be able to do this programmatically. I have a blob of "raw" HTML
code that I want to insert at a given point. I tried Range.InsertBefore and
all I got was the HTML codes.
I'm guessing (though I haven't yet tried) that I could stuff my blob onto
the clipboard and use the Range.Paste method, but that approach just seems so
lame to me. I'm sure (hopeful?) there's just some simple thing I'm not seeing
in my searches.
I'm actually working in C++ and C# (not using VSTO though), but since it's
all the same object model, I can "translate" VBA examples easily enough. Any
pointers greatly appreciated.
Brad.
it into a Word document (Word 2003 in this case), and all the formatting is
preserved.
I need to be able to do this programmatically. I have a blob of "raw" HTML
code that I want to insert at a given point. I tried Range.InsertBefore and
all I got was the HTML codes.
I'm guessing (though I haven't yet tried) that I could stuff my blob onto
the clipboard and use the Range.Paste method, but that approach just seems so
lame to me. I'm sure (hopeful?) there's just some simple thing I'm not seeing
in my searches.
I'm actually working in C++ and C# (not using VSTO though), but since it's
all the same object model, I can "translate" VBA examples easily enough. Any
pointers greatly appreciated.
Brad.