none
adding external image works only for some path RRS feed

  • Question

  • Hi all Smile

    Here is my little problem:

    If i put my external image on c:\image.jpg, works...

    if i try with:

    myReport.LocalReport.EnableExternalImages = true;
    string myPath = Application.StartupPath + @"\Images\image.jpg";
    ReportParameter[] par = new ReportParameter[1];
    par[0] = new ReportParameter("P", myPath);
    myReport.LocalReport.SetParameters(par);
    myReport.RefresReport();


    it doesnt work Sad

    I've already print out the "mypath" and is correct .

    Any Helps?

    Wednesday, November 28, 2007 4:27 PM

All replies

  • Sounds like there is some ACL problem on the image path.  Please verify that the account the application is running as, actually has explicit read permissions on the specified directory.

     

    -- Robert

    Thursday, November 29, 2007 2:02 AM
    Moderator