Nevron Forum
Back
Login
Register
Login
Register
Home
»
Nevron Open Vision for NET
»
NOV Text Editor for .NET
»
Load HTML File
Load HTML File
Post Reply
Load HTML File
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
Goto Topics Forum
Author
Message
Roman Sallin
Roman Sallin
posted 9 Years Ago
ANSWER
Topic Details
Group: Forum Members
Posts: 3,
Visits: 19
Hi
I have RichTextViewWithRibbon control on a form. How do I load a HTML file into this control? There is not Load-method for this control. I tried the Widget property but that did not help. There is no simple example in the documentation. I found no tutorial for such simple tasks. The example project does not show how to access...
Best regards
Reply
Like
1
Nevron Support
Nevron Support
posted 9 Years Ago
ANSWER
Post Details
Group: Administrators
Posts: 3.1K,
Visits: 4.2K
Hi,
You should first get the rich text view widget of the
NRichTextViewWithRibbonControl
by using the
GetFirstDescendant
method of its widget and then you can use the
LoadFromFile
method of the rich text view to load a file. Here's a C# code sample:
NRichTextViewWithRibbon richTextWithRibbon = nRichTextViewWithRibbonControl1.Widget;
NRichTextView richTextView = (NRichTextView)richTextWithRibbon.GetFirstDescendant(NRichTextView.NRichTextViewSchema);
richTextView.LoadFromFile(@"C:\Documents\MyFile.html");
Best Regards,
Nevron Support Team
Reply
Like
1
Roman Sallin
Roman Sallin
posted 9 Years Ago
ANSWER
Post Details
Group: Forum Members
Posts: 3,
Visits: 19
Thank you very much! That solved the problem.
Reply
Like
0
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Post Reply
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search