Profile Picture

Load HTML File

Posted By Roman Sallin 5 Years Ago
Author
Message
Roman Sallin
Question Posted 5 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: 5 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 5 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,091 reputation)Supreme Being (4,091 reputation)Supreme Being (4,091 reputation)Supreme Being (4,091 reputation)Supreme Being (4,091 reputation)Supreme Being (4,091 reputation)Supreme Being (4,091 reputation)Supreme Being (4,091 reputation)Supreme Being (4,091 reputation)

Group: Forum Members
Last Active: 2 days ago @ 9:07 AM
Posts: 2,963, Visits: 3,364
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 5 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: 5 Years Ago
Posts: 3, Visits: 19
Thank you very much! That solved the problem.




Similar Topics


Reading This Topic