C# 如何在ASP.NETC中将HTML DIV内容导出到powerpoint幻灯片#

C# 如何在ASP.NETC中将HTML DIV内容导出到powerpoint幻灯片#,c#,jquery,html,asp.net,powerpoint,C#,Jquery,Html,Asp.net,Powerpoint,我正在尝试将div标签的所有内容导出到ppt文件中。我能够为doc和excel做这件事,因为word和excel有一个开放的xml格式。我为ppt做了以下事情,但没有得到正确的结果。 这是我的html代码 <body> <form id="form1" runat="server"> <div id="demo" runat=server> <h1>Click the button to Export</h1&

我正在尝试将div标签的所有内容导出到ppt文件中。我能够为doc和excel做这件事,因为word和excel有一个开放的xml格式。我为ppt做了以下事情,但没有得到正确的结果。 这是我的html代码

<body>
    <form id="form1" runat="server">
    <div id="demo" runat=server>
        <h1>Click the button to Export</h1>
        <h3>This page contain a heading,paragraph and a table</h3>

    </div>
    <asp:Button ID="export" OnClick="Export_to_ppt" Text="Export" runat="server" />
    </form>
</body>
在我的结果中,每个内容都会显示,但html标记也会显示。但我只想看到它在html页面中的显示。每个内容也打印在不同的幻灯片中,但我希望在一张幻灯片中看到这些内容

请帮我做这个

 string elements = demo.InnerHtml;
 Response.ContentType = "application/vnd.ms-powerpoint";
 Response.AddHeader("content-disposition", "attachment; filename=sample.ppt");  
 Response.Write(elements);
 Response.End();