Results 1 to 6 of 6

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

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2014
    Posts
    64

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

    Hi Friends,

    I am new to Silver light.

    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
    Last edited by SeemsP; Jun 26th, 2014 at 09:36 AM. Reason: attachment

  2. #2

    Thread Starter
    Lively Member
    Join Date
    Jan 2014
    Posts
    64

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

    Hi Friends,

    I am new to Silver light.

    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  

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jan 2014
    Posts
    64

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

    I forgot to add the attachment.
    Attached Images Attached Images  

  4. #4
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Location
    South Louisiana
    Posts
    11,698

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

    Duplicate threads merged. Also moved from ASP.Net and C# forum to Silverlight forum.
    "Code is like humor. When you have to explain it, it is bad." - Cory House
    VbLessons | Code Tags | Sword of Fury - Jameram

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Jan 2014
    Posts
    64

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

    Can any one please help me out, with this issue

  6. #6

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

    SeemsP, please write did you decide your problem? If yes, please write how.

Posting Permissions

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



Click Here to Expand Forum to Full Width