Its urgent help:HOW TO Open the .pdf file present in the root path ofthe application?
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 1 of 1

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

  1. #1
    Join Date
    Jan 2013
    Posts
    23

    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:

    Code:
    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:
    C:\Webs\SLLoadHelp.

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

    Regards
    Prity
    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

This is a CodeGuru survey question.


Featured


HTML5 Development Center