Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Clipboad Data
Message
From
31/12/2010 08:15:36
 
 
To
31/12/2010 07:34:26
Javed Yusuf
Analytic Systems
Lahore, Pakistan
General information
Forum:
ASP.NET
Category:
Other
Title:
Environment versions
SQL Server:
SQL Server 2008
Application:
Desktop
Miscellaneous
Thread ID:
01494223
Message ID:
01494225
Views:
49
>Hello everyone,
>I am working on dictionary application. When I try to copy word’s pronunciation from web browser and paste on textbox its loss all fonts and formation. Please help me which control I use. I try Richtext and textbox…
>Thank You,

Since you are copying HTML try the Microsoft.WebBrowser control. Initialize it to an empty page:
thisForm.oBrowser.Navigate("about:blank")
Then a function similar to this should work:
LPARAMETERS theCopiedHTMLString
WITH oBrowser
  .Document.Open()
  .Document.Clear()
  .Document.Write(theCopiedHTMLString)
  .Document.Close()
ENDWITH
But there's no quarantee that this will work if the source HTML has styles applied etc,etc...
The other alternative is to find an HTML to RTF converter - but it will suffer the same problems as above..
Previous
Reply
Map
View

Click here to load this message in the networking platform