如何將web頁中的 Img 圖像傳到 livecycle designer 中的影像欄位
問題代碼:(pdf中顯示不出來)
ResultData uploadresult = null;
ArrayList TagList = new ArrayList();
Pdf pdf = new Pdf();
TagList.Add(new TagStruct (img_zuzhi .GetType ().Name ,img_zuzhi .UniqueID ,img_zuzhi .ImageUrl ));
TagList.Add(new TagStruct (img_dili .GetType ().Name ,img_dili .UniqueID ,img_dili .ImageUrl ));
string StrTarget = Globals.PhysicalApplicationPath + BLL.DFM.DownloadFoldor + DateTime.Now.Ticks.ToString() + ".pdf";
if (pdf.Fill(Globals.PhysicalApplicationPath + TemplatePath + @"/" + FileTemplate.Language + @"/" + FileTemplate.PrintTemplateUrl, StrTarget, TagList))
{
uploadresult = ftp.Upload((Vendorid != null ? new Guid(Vendorid) : Guid.NewGuid()), StrTarget);
if (!uploadresult.blnData)
{
Response.Write("<script>alert('false');</script>");
}
else
{
forms.UpdateVendorFilePath(Historyid, FileTemplateID, Path.GetFileName(StrTarget), uploadresult.strData, Path.GetExtension(StrTarget), FileTemplate.PrintTemplateUrl, util.userinfo.Code);
tbx_FilePath.Text = "../../" + BLL.DFM.DownloadFoldor + Path.GetFileName(StrTarget);
}
return true.ToString();
}
else
{
return false.ToString();
}