Profile Picture

Load HTML File

Posted By Roman Sallin 8 Years Ago
Author
Message
Roman Sallin
Question Posted 8 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)

Group: Forum Members
Last Active: 8 Years Ago
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


Nevron Support
Posted 8 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)

Group: Forum Members
Last Active: Last Year
Posts: 3,039, Visits: 3,746
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



Roman Sallin
Posted 8 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)

Group: Forum Members
Last Active: 8 Years Ago
Posts: 3, Visits: 19
Thank you very much! That solved the problem.




Similar Topics


Reading This Topic