?
Solved

Load TStrings to TWebBrowser window

Posted on 2000-02-27
2
Medium Priority
?
157 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 300 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

Industry Leaders: 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

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

752 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