CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 1 of 1
  1. #1
    Join Date
    Jan 2013

    Its urgent help:HOW TO Open the .pdf file present in the root path ofthe application?

    Hi Friends,

    I am new to Silver light.

    1st i am really sorry i am posting this thread here, i tried to post in silverlight forum, but there i was unable to do it.

    I have written the below code which will open the .pdf file from the silverligt path.
    as below:

    Uri uri = new Uri(HtmlPage.Document.DocumentUri, "/ClientBin/10c.pdf");
                           string path = uri.AbsoluteUri.ToString();
                HtmlPage.Window.Eval("window.open('" + path + "')");
                //HtmlPage.Window.Eval("document.location.href='" + path + "';");
    I want to open the .pdf file kept in the root directory of the application, (note - do not hard code)
    ex: i want to open the .pdf file kept in the below location:

    Just have look @ the screen shot.
    Its very urgent, help me out.

    Attached Images Attached Images  

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.