IIS problem
Posted: Sat Jun 20, 2015 11:28 am
Hi
I use web designer to edit a special report.
@Html.Stimulsoft().StiMvcMobileDesigner(
"MvcMobileDesigner1",
new StiMvcMobileDesignerOptions
{
ActionGetReportTemplate = "GetReportTemplate",
ActionGetReportSnapshot = "GetReportSnapshot",
ActionSaveReportTemplate = "SaveReportTemplate",
ActionDesignerEvent = "DesignerEvent",
ShowSaveDialog = false,
ShowDictionary = false,
ShowPropertiesGrid = false,
ShowInsertButton = false,
ShowPageButton = false,
ShowPreviewButton = false,
ServerCacheMode = StiDesignerCacheMode.Page,
ShowFileMenuOpen = false,
ShowFileMenuNew = false,
ShowFileMenuClose = false,
})
the report has an image in background as a template that I set path of this image manually.
public ActionResult GetReportTemplate()
{
StiReport report = new StiReport();
var reportFileName = Server.MapPath(…….…);
report.Load(reportFileName);
StiImage img = report.GetComponents()["templateImage"] as StiImage;
img.File = Server.MapPath(“image1.jpg”));
return StiMvcMobileDesigner.GetReportTemplateResult(HttpContext, report);
}
Designer works well and I can edit the report and save it.
But after save and closing report designer, I cannot delete or change “image1.jpg” because this file is blocked by IIS.
How can I release this image file after saving report?
thanks
I use web designer to edit a special report.
@Html.Stimulsoft().StiMvcMobileDesigner(
"MvcMobileDesigner1",
new StiMvcMobileDesignerOptions
{
ActionGetReportTemplate = "GetReportTemplate",
ActionGetReportSnapshot = "GetReportSnapshot",
ActionSaveReportTemplate = "SaveReportTemplate",
ActionDesignerEvent = "DesignerEvent",
ShowSaveDialog = false,
ShowDictionary = false,
ShowPropertiesGrid = false,
ShowInsertButton = false,
ShowPageButton = false,
ShowPreviewButton = false,
ServerCacheMode = StiDesignerCacheMode.Page,
ShowFileMenuOpen = false,
ShowFileMenuNew = false,
ShowFileMenuClose = false,
})
the report has an image in background as a template that I set path of this image manually.
public ActionResult GetReportTemplate()
{
StiReport report = new StiReport();
var reportFileName = Server.MapPath(…….…);
report.Load(reportFileName);
StiImage img = report.GetComponents()["templateImage"] as StiImage;
img.File = Server.MapPath(“image1.jpg”));
return StiMvcMobileDesigner.GetReportTemplateResult(HttpContext, report);
}
Designer works well and I can edit the report and save it.
But after save and closing report designer, I cannot delete or change “image1.jpg” because this file is blocked by IIS.
How can I release this image file after saving report?
thanks