Solved

Load TStrings to TWebBrowser window

Posted on 2000-02-27
2
151 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
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

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

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…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

803 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