Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Vb Script to Output in HTML

Posted on 2011-10-02
Medium Priority
Last Modified: 2012-05-12
I an trying to output in HTML from a VbScript code, but I keep getting errors.. Here is my output but when I do something like this OutWriteline "<FontSize="14">" it breaks. I am sure I am doing something wrong.

oOut.WriteLine "<htmL>"
oOut.WriteLine "<Body>"
oOut.WriteLine "<FontSize="14">"
oOut.WriteLine "<b><FontSize=14">Testing Session Output </b></font>"
oOut.WriteLine "</font>"
oOut.WriteLine "<Table>"
oOut.WriteLine "<TR>"
oOut.WriteLine(" <td>" & SessionId(0).text & "</td>")
oOut.WriteLine "</TR>"
oOut.WriteLine "</body>"
oOut.WriteLine "</html>"

Question by:drezner7
LVL 30

Accepted Solution

Olaf Doschke earned 2000 total points
ID: 36900573
simple reason, " inside a string doesn't work out. But html also works without quotes around attribute values, or single quotes instead.


oOut.WriteLine "<FontSize='14'>"

Bye, Olaf.

Author Closing Comment

ID: 36900601
Thank you so much. That is just what I needed

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is an addendum to the following article: Acitve Directory based Outlook Signature (http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_24950055.html) The script is fine, and works in normal client-server domains…
When it comes to writing scripts for a Client/Server computing environment it is essential to consider some way of enabling the authentication functionality within a script. This sort of consideration mainly comes into the picture when we are dealin…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…

564 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question