Solved

Load TStrings to TWebBrowser window

Posted on 2000-02-27
2
156 Views
Last Modified: 2010-04-04
I need to have a webbrowser to display contents of a TMemo. What I did is to save the content to a file and then load the file to the TWebBrowser. Is there any way that I can bypass this and directly view the contents without saving-loading? Thanks
0
Comment
Question by:xiangenhu
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

Accepted Solution

by:
tresto earned 100 total points
ID: 2573159
First, if your WebBrowser is empty, you need to do

WebBrowser1.Navigate('about:blank');

Then you go with

OleVariant(WebBrowser1.Document).Write(Memo1.Lines.Text);
0
 

Author Comment

by:xiangenhu
ID: 2585849
It works!
WebBrowser1.Navigate('about:blank');

better be WebBrowser1.Navigate('about:blank',flag,temp,temp,temp);

where flag, temp are  OleVariant
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

691 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