I am trying to upgrade from 4.08 to
05.06.01
Everything is working fine with exception of one custom control.
This custom control displays PDF files, it works fine in version 4.x but getting the following error in 5.x
Domain Name localhost:50112/Reports/PDFs/00591 Detail by Memo Lot 1.PDF Does Not Exist In The Database
Does anybody know what might be the problem or where should I look to get more info, I am using VS 2010?
Thank You
Peter
here's my code to display a PDF file
protected override void RenderContents(HtmlTextWriter writer)
{
try
{
sb.Append("<iframe src=" + System.Web.HttpUtility.UrlPathEncode(mFilePath));
sb.Append(" width=" + Width.ToString() + " height=" + Height.ToString());
sb.Append(" <View PDFs: <a href=" + System.Web.HttpUtility.UrlPathEncode(mFilePath) + "</a>");
sb.Append("</iframe>");
writer.RenderBeginTag(HtmlTextWriterTag.Div);
writer.Write(sb.ToString());
writer.RenderEndTag();
}
catch
{
writer.RenderBeginTag(HtmlTextWriterTag.Div);
writer.Write("Display PDF Control");
writer.RenderEndTag();
}
}