Computing.Net > Forums > Programming > vbscript help please

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

vbscript help please

Reply to Message Icon

Name: vinhwsu
Date: August 6, 2004 at 12:58:33 Pacific
OS: windows
CPU/Ram: 1g
Comment:

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?



Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

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


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: vbscript help please

Assembly Language Help please? www.computing.net/answers/programming/assembly-language-help-please/4705.html

help please www.computing.net/answers/programming/help-please/8283.html

Help please www.computing.net/answers/programming/help-please/10538.html