Can someone please tell me what is wrong with this code. I keep getting an error object expected from the script debugger in IE and nothing happens.
<%
@ Page Language="VB" AutoEventWireup="false" CodeFile="2PDF.aspx.vb" Inherits="_2PDF" %>
<!
DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%
@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %>
<
html xmlns="http://www.w3.org/1999/xhtml" >
<
head runat="server">
<title>Untitled Page</title>
</
head>
<
script language="javascript">
function createpdf(){
var
editor1 = document.getElementById('<% = Editor9.ClientID%>');
var
t = editor1.getHTML();
CuteEditor.Convertor.PDF.HTML2PDF html2pdf =
new CuteEditor.Convertor.PDF.HTML2PDF(t);
html2pdf.Render();
html2pdf.Save(
"~/doc/mydoc.pdf");
}
</
script>
<
body>
<form id="form1" runat="server">
<div style="text-align: center">
<CE:Editor ID="Editor9" runat="server" AutoConfigure="Simple" BreakElement="P" CodeViewTemplateItemList="Save,Print,Cut,Copy,Paste,Find,ToFullPage,FromFullPage,SelectAll,InsertNumberedList,SelectNone"
EditorWysiwygModeCss="example.css" Height="176px" ShowBottomBar="False" ShowGroupMenuImage="False"
Width="100%" MaxHTMLLength="10000" MaxTextLength="10000" PrintFullWebPage="True">
<FrameStyle BackColor="White" BorderColor="#DDDDDD" BorderStyle="Solid" BorderWidth="1px"
CssClass="CuteEditorFrame" Height="100%" Width="100%" />
</CE:Editor>
<asp:Button ID="Button1" runat="server" Text="Button" OnClientClick="createpdf()" UseSubmitBehavior="False" /></div>
</form>
</
body>
</
html>