Solved

Load TStrings to TWebBrowser window

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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

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…
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

758 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now