Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
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
i have dual boot win98 and win XP, my problem is how to edit the MBR, because my Win XP does not boot properly (it boots again and again without getting in to the proper OS of Win XP). What will I do?

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |