Do you have the control of the generated html document ? In other words, is
it possible to insert into your chain an xml format ...
Word -xml -html in your first app,
Word -xml -table cell inner html in your second app...
An other solution could be to use the WebClient class.
WebClient wc = new WebClient();
string result = wc.DownloadData();
Regex r = new Regex(@"\<body\>(?<body>.*)\</body\>",
RegexOptions.IgnoreCase); // not sur of the syntax
string body = r.Match("result").Group["body"].Value;
yourTable.Controls.Add(new Literal(body));
The idea is to capture the body of the remote page using regex, and to
render the captured content to your page.
HTH
"SteveM" <steve.moody@philips.coma écrit dans le message de news:
1166109885.721805.99390@79g2000cws.googlegroups.co m...
Quote:
>I am sure this is an easy question, but being relatively new to ASP.NET
programming, I can not quite grasp what I need to accomplish what I
need to do.
What I have is a word document that is rendered as a page (or actualy a
part of a page) that is editiable. To do this I let the user download
the document, edit it and then upload it back to the site. Then at
Page_Open, I convert the .doc file to an html and render it back to the
page... that is the way it supposed to work. I am falling down on the
part on how to render the html back to the cell of table (used for
formatting) on my ASP.NET page. I can find no controls that allow you
to display another html page. I have tried putting it into a custom
control, but then I am faced with scroll bars and it doesnt have the
look and feel of a normal HTML (sizing by sizing the page).
>
So in a nutshell what I want to be able to do is take page a (which is
an html converted document) and display it in a content section in a
table cell of a master page... thats all simple huh?
>
Thanks for any help or pointers you can give me
-SteveM
>