iis6newbie
Technical User
Hello all,
can someone help me how to display html content on word document using VBscript?
<html>
<body>
testing string
</body>
</html>
I just want to see "testing string" in the word document. don't want to see any extra html tag in the word document.
Thanks for any help
Here is my C# code:
string strjscript = "<SCRIPT LANGUAGE=vbscript>\n";
strjscript += "Dim objWordobject\n";
strjscript += "Dim objDocobject\n";
strjscript += "Dim strReturnValue\n";
strjscript += "Set objWordobject = CreateObject(\"word.Application\")\n";
strjscript += "objWordobject.Visible = True\n";
strjscript += "Set objDocobject = objWordobject.Documents.Add( , , 1, True)\n";
string report = completeReport.ToString().Replace("\"", "&qt;");
strjscript += "objDocobject.Content="+"\"" + report+"\""+"\n";
strjscript += "</SCRIPT>";
ltr1.Text = strjscript;
///report is string that contained html code
can someone help me how to display html content on word document using VBscript?
<html>
<body>
testing string
</body>
</html>
I just want to see "testing string" in the word document. don't want to see any extra html tag in the word document.
Thanks for any help
Here is my C# code:
string strjscript = "<SCRIPT LANGUAGE=vbscript>\n";
strjscript += "Dim objWordobject\n";
strjscript += "Dim objDocobject\n";
strjscript += "Dim strReturnValue\n";
strjscript += "Set objWordobject = CreateObject(\"word.Application\")\n";
strjscript += "objWordobject.Visible = True\n";
strjscript += "Set objDocobject = objWordobject.Documents.Add( , , 1, True)\n";
string report = completeReport.ToString().Replace("\"", "&qt;");
strjscript += "objDocobject.Content="+"\"" + report+"\""+"\n";
strjscript += "</SCRIPT>";
ltr1.Text = strjscript;
///report is string that contained html code