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


Top 5 Contributors of the Month
david stephan

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
hi..

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

which silverlight control i have to use?

need ur suggestions with examples..

regards
gopal.s

Responses
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
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

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