.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Home >> Forum >> Silverlight >> Post New QuestionBookmark and Share Subscribe to Forum

load pdf,html files inside silvelight appl.

Posted By: gopal     Posted Date: March 14, 2012    Points:5   Category :Silverlight

i want to load pdf,html files inside silvelight appl.

which silverlight control i have to use?

need ur suggestions with examples..


Author: Subhransu Sekhar Jena             
Posted Date: June 29, 2015     Points: 20   

private void cmdShowPDF_Click(object sender, RoutedEventArgs e)
Uri uri = new Uri(HtmlPage.Document.DocumentUri, "Your physical path address");
string path = uri.AbsoluteUri.ToString();
HtmlPage.Window.Eval("window.open('" + path + "')");
The above code will show the PDF file in browser window.

If you want to show inside application then use silverlight browser control.

Post Reply

You must Sign In To post reply
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend